Function at 0x479170
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xfc
mov eax, dword [esp + 0x110]
mov esi, dword [esp + 0x110]
mov dword [esp + 0x4c], 0
mov eax, dword [eax]
mov edx, dword [esi + 4]
cmp dword [eax + 0x20], 2
je 0x479b55
test edx, edx
je 0x479a54
mov ebx, dword [eax + 0x80]
mov ecx, dword [esp + 0x118]
lea edx, [esp + 0xc0]
mov dword [esp + 0xa8], 0
mov esi, dword [eax + 0x84]
mov dword [esp + 0xac], 0
mov dword [esp + 0x78], ebx
xor ebx, ebx
shld ebx, ecx, 5
shl ecx, 5
mov dword [esp + 0x7c], esi
lea esi, [esp + 0xa0]
mov dword [esp + 0x38], ecx
movzx ecx, byte [eax + 0x3a]
mov eax, 0x10
mov dword [esp + 8], esi
cmp cl, 0x10
mov dword [esp], 0
cmovb ecx, eax
mov eax, 1
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], 0x4746e0
shl eax, cl
mov dword [esp + 4], eax
mov esi, eax
mov dword [esp + 0xb8], 0x4746b0
mov dword [esp + 0xbc], 0x474670
mov dword [esp + 0xa0], 0
mov dword [esp + 0x94], eax
mov dword [esp + 0xa4], 0
call fcn.00427280
mov ebx, edx
mov dword [esp + 0x8c], eax
or ebx, eax
mov dword [esp + 0x90], edx
jne 0x479a91
mov dword [esp + 0x74], 0
mov dword [esp + 0x40], edx
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x70], esi
mov esi, eax
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004a0bc0
mov ebx, dword [esp + 0xa4]
mov ebp, eax
test eax, eax
je 0x479570
test ebx, ebx
je 0x479570
add ebx, dword [esp + 0x88]
mov edi, eax
sub ebx, eax
mov eax, dword [esp + 0x40]
or eax, esi
jne 0x47930e
cmp ebx, 0x1f
jbe 0x479d00
mov eax, dword [esp + 0x40]
or eax, esi
jne 0x479a04
lea eax, [esp + 0xa8]
mov edx, dword [esp + 0x3c]
add edi, dword [esp + 0xa0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x48], edi
mov dword [esp], eax
call fcn.00472310
mov ebx, edx
mov dword [esp + 0x68], eax
or ebx, eax
mov dword [esp + 0x6c], edx
jne 0x479da0
mov eax, dword [esp + 0x110]
xor edi, edi
xor ebp, ebp
mov esi, dword [eax + 4]
mov ebx, dword [eax]
test esi, esi
je 0x479393
movzx ecx, byte [ebx + 0x3a]
mov eax, dword [ebx + 0x78]
xor edi, edi
mov edx, dword [ebx + 0x7c]
shld edx, eax, cl
shl eax, cl
test cl, 0x20
cmovne edx, eax
cmovne eax, edi
mov ebp, edx
mov edi, eax
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0xc0], ebx
add edi, edx
mov dword [esp + 0x40], edx
lea edx, [esp + 0xc4]
adc ebp, ecx
mov dword [esp + 0x44], ecx
xor eax, eax
mov ecx, 0xb
mov dword [esp + 0x50], edi
mov edi, edx
mov edx, dword [esp + 0x38]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x54], ebp
mov dword [esp + 0xdc], esi
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x11c]
mov dword [esp + 0xc8], edx
mov dword [esp + 0x18], esi
mov esi, edx
xor edx, 0x20
mov ebp, dword [esp + 0x44]
or edx, ecx
mov dword [esp + 0xe4], eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x28], eax
sete al
movzx eax, al
mov dword [esp + 0xd0], edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
mov eax, esi
or eax, ecx
mov dword [esp + 0x24], 0
sete al
mov dword [esp + 0x20], 0
movzx eax, al
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xcc], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xd4], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.00473900
mov esi, eax
mov eax, edx
mov dword [esp + 0x40], edx
or eax, esi
jne 0x4797c1
mov edi, dword [esp + 0xd8]
test edi, edi
je 0x479643
mov eax, dword [esp + 0x11c]
xor ebp, ebp
test eax, eax
jne 0x479984
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
call ebx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], 0x54a9e3
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 8], 0x5496cd
mov dword [esp + 4], str.__s__Got__I64u_validation_errors_when_processing_record__Iu._s
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5496ca
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0x40]
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x47954f
lea ecx, [esp + 0xa0]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0041d440
mov eax, dword [esp + 0x60]
or eax, dword [esp + 0x64]
je 0x479b40
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x60]
or eax, dword [esp + 0x64]
je 0x479900
mov ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0041d490
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
mov esi, eax
call ebx
mov dword [esp + 0x18], esi
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x5496cd
mov dword [esp + 4], str.__s__Error_while_reading_directory_at_offset__I64d__aborting_directory_read_operation..._:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5496ca
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0x60]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xa0]
test eax, eax
jne 0x47953c
jmp 0x47954f
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.004738d0
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov ebp, eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x114]
shrd ecx, ebx, 5
sar ebx, 5
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ebx
test eax, eax
je 0x4796b0
mov eax, dword [esp + 0x114]
mov eax, dword [eax]
test eax, eax
je 0x4796b0
mov edx, dword [eax]
test edx, edx
je 0x4796b0
mov ebx, ecx
mov ecx, dword [edx + 4]
cmp ecx, ebx
jb 0x4796b0
lea edi, [ebx + 1]
cmp ebp, 6
je 0x4796b0
cmp ecx, edi
jb 0x479a80
lea esi, [esi]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x10], 0
xor ebx, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x120]
mov dword [esp], eax
call dword [eax]
mov edi, eax
mov eax, edx
mov ebp, edx
and eax, edi
cmp eax, 0xffffffff
je 0x479525
mov eax, edx
or eax, edi
je 0x479e4a
cmp ebx, edi
mov dword [esp], edi
sbb ebx, edx
mov dword [esp + 4], edx
jge 0x4798c0
call fcn.0041d490
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
mov dword [esp + 0x48], eax
call ebx
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x5496cd
mov dword [esp + 0x10], edx
mov dword [esp + 4], str.__s__Visitor_threw_an_error:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5496ca
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov ebx, dword [esp + 0x11c]
test ebx, ebx
je 0x479e3d
cmp dword [esp + 0x58], 6
je 0x479531
add dword [esp + 0x38], 0x20
adc dword [esp + 0x3c], 0
add dword [esp + 0x5c], 1
jmp 0x4792b5
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.0041d490
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call ebx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0x5496cd
mov dword [esp + 4], str.__s__Error_while_validating_record__Iu:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5496ca
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x479525
mov ebx, dword [esp + 0x48]
mov dword [esp], ebx
call fcn.004738d0
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
shrd eax, edx, 5
mov edx, dword [esp + 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x120]
mov dword [esp], eax
call dword [eax]
mov esi, eax
mov eax, edx
mov dword [esp + 0x40], edx
and eax, esi
cmp eax, 0xffffffff
jne 0x4797a2
jmp 0x479531
call fcn.0041d490
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
mov dword [esp + 0x48], eax
call ebx
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x5496cd
mov dword [esp + 0x10], edx
mov dword [esp + 4], str.__s__Unexpected_return_value:__lu___s_
jmp 0x479751
lea eax, [esp + 0xa4]
mov edx, dword [esp + 0x3c]
mov edi, ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x94]
sub eax, ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0xa0]
add eax, ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x110]
mov dword [esp], eax
call fcn.00472a30
mov ebx, eax
mov eax, edx
or eax, ebx
je 0x479a30
mov esi, dword [esp + 0xa4]
test esi, esi
jne 0x479b82
mov eax, dword [esp + 0x64]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x60], edx
mov dword [esp + 0x90], eax
jmp 0x47957e
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
call ebx
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], str._Ignoring.
mov dword [esp + 0x14], esi
mov esi, edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x5496cd
mov dword [esp + 4], str.__s__Got__I64u_validation_errors_when_processing_record__Iu._s
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5496ca
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
jmp 0x47984f
mov eax, dword [esp + 0x64]
mov dword [esp + 0x64], esi
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x60], eax
jmp 0x47957e
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], edx
mov ebx, dword [esp + 0xa4]
cmp ebx, 0x1f
jbe 0x479d00
mov dword [esp + 0x88], ebp
jmp 0x47931a
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
xor ecx, dword [eax + 0xa0]
xor edx, dword [eax + 0xa4]
or ecx, edx
sete cl
movzx ecx, cl
mov dword [esp + 0x4c], ecx
jmp 0x4791a7
cmp ebp, 5
jne 0x479c10
mov dword [edx + 4], edi
jmp 0x4796b0
mov edi, dword [esp + 0x8c]
mov ebp, dword [esp + 0x90]
mov dword [esp], edi
mov dword [esp + 4], ebp
call fcn.0041d490
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
mov esi, eax
call ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x5496cd
mov dword [esp + 4], str.__s__Error_while_allocating_temporary_buffer:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5496ca
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x479ce5
lea ecx, [esp + 0xa0]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0041d440
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ebp
mov eax, dword [esp + 0x68]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x60], eax
jmp 0x47955d
test edx, edx
je 0x4791a7
mov ecx, dword [eax + 0x94]
lea edx, [ecx - 2]
mov ecx, dword [esp + 0x110]
xor edx, dword [ecx + 0x10]
or edx, dword [ecx + 0x14]
sete cl
movzx ecx, cl
mov dword [esp + 0x4c], ecx
jmp 0x4791a7
mov ecx, dword [fcn.004a1b90]
mov dword [esp + 0x40], edx
mov dword [esp], 2
mov dword [esp + 0x48], ecx
call ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x54a099
mov dword [esp + 4], str.__s__Deferring_read_error_due_to_non_0_read_size:__Iu
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov ecx, dword [esp + 0x48]
mov dword [esp], 2
call ecx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5496ca
call sub.msvcrt.dll_fwrite
mov ecx, dword [esp + 0x48]
mov dword [esp], 2
call ecx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x40]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], edx
jmp 0x479a38
mov edx, dword [esp + 0x80]
mov ecx, 1
call fcn.00477b30
mov edi, eax
mov eax, edx
or eax, edi
je 0x4796b0
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.0041d490
mov edx, dword [fcn.004a1b90]
mov dword [esp], 2
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], edx
call edx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x54a099
mov dword [esp + 4], str.__s__Error_while_marking__lu_clusters_starting_at__lu:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov edx, dword [esp + 0x98]
mov dword [esp], 2
call edx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5496ca
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x98]
mov dword [esp], 2
call edx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0x114]
mov dword [esp], eax
call fcn.00478020
jmp 0x4796b0
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x60], eax
jmp 0x47955d
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x6c], eax
test ebx, ebx
je 0x479531
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
call esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], 0x5496cd
mov dword [esp + 4], str.__s__Internal_error:_Not_enough_bytes_left_in_buffer_for_a_complete_FAT_DIR_SLOT._Need:__Iu_bytes__Have:__Iu_bytes
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5496ca
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp + 0x68], 5
mov dword [esp + 0x6c], 0
jmp 0x479531
mov dword [esp + 4], edx
mov edi, eax
mov dword [esp], eax
call fcn.0041d490
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
mov esi, eax
call ebx
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0x5496cd
mov dword [esp + 4], str.__s__Failed_to_get_the_byte_offset_for_dir_offset__I64d:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x5496ca
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0xa0]
test eax, eax
jne 0x47953c
jmp 0x47954f
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ebp
jmp 0x479531
mov esi, edi
mov dword [esp + 0x40], edx
jmp 0x4797a2