Function at 0x4014c0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
xor edi, edi
mov ebx, dword [ebp + 8]
call fcn.00402060
nop word cs:[eax + eax]
mov esi, edi
mov edi, 1
push 0x40930c
push dword [ebp + 0xc]
push ebx
call fcn.004033b0
add esp, 0xc
cmp eax, 0x7a
je 0x4014e0
cmp eax, 0xffffffff
jne 0x4015cf
mov eax, dword [0x409658]
mov edx, ebx
mov ebx, dword [eax]
xor ecx, ecx
mov eax, 0
cmp ebx, edx
jge 0x4015d3
xor eax, eax
xor ecx, ecx
jmp 0x401540
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
inc ebx
cmp dword [ebp + 8], ebx
je 0x4016c9
mov edx, dword [ebp + 0xc]
mov edi, dword [edx + ebx*4]
test ecx, ecx
je 0x401590
test eax, eax
jne 0x4015d3
mov dword [ebp - 0x10], ecx
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [ebp - 0x18], eax
push 0x4094e0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x401530
push 0x409311
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
add esp, 8
jmp 0x401533
mov dword [ebp - 0x18], eax
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [ebp - 0x10], eax
push 0x4094e0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x401530
push 0x40930e
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0x18]
jmp 0x401536
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 2
call esi
add esp, 4
push eax
push 1
push 0x26
push str.Usage:_hprof_conf___z__infile_outfile_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push 2
call esi
add esp, 4
push eax
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
push 2
call esi
add esp, 4
push eax
push 1
push 0x2c
push str.___z:_exclude_non_app_heaps__such_as_Zygote_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push 2
call esi
add esp, 4
push eax
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
push 2
call esi
add esp, 4
push eax
push 1
push 0x3a
push str.Specify___for_either_or_both_files_to_use_stdin_stdout._n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push 2
call esi
add esp, 4
push eax
push 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
add esp, 8
push 2
call esi
add esp, 4
push eax
push 1
push 0x13c
push str.Copyright__C__2009_The_Android_Open_Source_Project_n_nThis_software_is_built_from_source_code_licensed_under_the_Apache_License__nVersion_2.0__the__License__._You_may_obtain_a_copy_of_the_License_at_n_n_____http:__www.apache.org_licenses_LICENSE_2.0_n_nSee_the_associated_NOTICE_file_for_this_software_for_further_details._n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
mov ebx, 2
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4016a0
cmp ecx, eax
je 0x4016a0
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4016bf
cmp ecx, eax
je 0x4016bf
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
test ecx, ecx
je 0x4015d3
test eax, eax
je 0x4015d3
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
push 0xc
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x401825
mov edi, eax
push 0x40
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [ebp - 0x14], edi
mov dword [edi + 8], 0x40
xor ecx, ecx
mov dword [ebp - 0x20], 0x40
nop dword [eax]
lea edx, [ecx + 1]
mov dword [ebp - 0x28], edx
cmp edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
jbe 0x401760
add ecx, 0x81
mov dword [ebp - 0x20], ecx
push ecx
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
je 0x40199b
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ecx
mov dword [eax], ecx
jmp 0x401763
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x10]
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
add esp, 4
mov ebx, eax
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
add esp, 4
test eax, eax
jne 0x4017ef
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
add esp, 4
test eax, eax
jne 0x4017ef
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov byte [eax + ecx], bl
mov edx, dword [ebp - 0x28]
mov ecx, edx
test ebx, ebx
jne 0x401720
mov edi, dword [ebp - 0x14]
mov dword [edi + 4], edx
mov ecx, dword [ebp - 0x20]
mov dword [edi + 8], ecx
push str.JAVA_PROFILE_1.0.3
push eax
mov ebx, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x40182f
push str.JAVA_PROFILE_1.0.2
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
mov ebx, eax
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test ebx, ebx
je 0x401894
push eax
push 1
push 0x29
push str.ERROR:_expecting_HPROF_file_format_1.0.3_n
jmp 0x40189e
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 8], eax
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x1c
push str.ERROR:_failed_reading_input_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
mov ebx, 0xffffffff
jmp 0x4018ae
mov ebx, 0xffffffff
jmp 0x401681
mov byte [ebx + 0x11], 0x32
mov eax, dword [edi + 4]
push dword [ebp - 0x18]
push eax
push 1
push ebx
mov ebx, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
cmp eax, ebx
jne 0x4018c6
mov dword [edi + 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x10]
push 0
push 0xc
call fcn.00401a40
add esp, 8
mov ebx, 0xffffffff
test eax, eax
jne 0x4018ae
mov ecx, edi
mov edx, dword [ebp - 0x18]
call fcn.004019f0
test eax, eax
jne 0x4018ae
mov ecx, edi
mov edx, dword [ebp - 0x10]
push 1
push 1
call fcn.00401a40
add esp, 8
test eax, eax
jne 0x4018ab
mov edi, dword [ebp - 0x10]
jmp 0x40190d
push eax
push 1
push 0x2b
push str.ERROR:_HPROF_file_already_in_1.0.2_format._n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
mov ebx, 0xffffffff
mov edi, dword [ebp - 0x14]
push dword [edi]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
jmp 0x401681
push 2
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push ebx
push esi
push str.ERROR:_write__zu_of__zu_bytes_n
push eax
call fcn.004019d0
jmp 0x401818
mov edi, dword [ebp - 0x14]
mov ecx, edi
mov edx, dword [ebp - 0x18]
call fcn.004019f0
test eax, eax
jne 0x4018ae
mov ecx, edi
mov edi, dword [ebp - 0x10]
mov edx, edi
push 1
push 1
call fcn.00401a40
add esp, 8
test eax, eax
jne 0x4018ab
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
add esp, 4
test eax, eax
jne 0x401994
mov ecx, dword [ebp - 0x14]
mov edx, edi
push 0
push 8
call fcn.00401a40
add esp, 8
test eax, eax
jne 0x4018ab
mov edi, dword [ebp - 0x14]
mov eax, dword [edi]
movzx ecx, byte [eax]
mov eax, dword [eax + 5]
bswap eax
test eax, eax
je 0x401963
mov byte [ebp - 0x1c], cl
mov ecx, edi
mov edx, dword [ebp - 0x10]
push 0
push eax
call fcn.00401a40
movzx ecx, byte [ebp - 0x1c]
add esp, 8
test eax, eax
jne 0x4018ae
and cl, 0xef
cmp cl, 0xc
jne 0x4018e5
mov edi, dword [ebp - 0x14]
mov ecx, edi
mov edx, dword [ebp - 0x18]
push esi
call fcn.00401b00
add esp, 4
test eax, eax
jne 0x4018ae
mov dword [edi + 4], 0
jmp 0x4018f6
xor ebx, ebx
jmp 0x4018ab
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, dword [ebp - 0x1c]
add ecx, 0x81
push ecx
push str.ERROR:_realloc_failed_on_size_d_n
push eax
call fcn.004019d0
add esp, 0xc
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop word cs:[eax + eax]