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

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
mov edx, 0x1000
sub esp, 0xdc
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0xb8], ecx
movzx ecx, byte [esi + 0x3a]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x94], eax
movzx eax, byte [esi + 0x60]
cmp al, 0xc
mov byte [esp + 0x37], al
mov eax, 0x2000
cmovne eax, edx
movzx edx, word [esi + 0x38]
lea eax, [eax + edx - 1]
xor edx, edx
shr eax, cl
mov ebp, edx
mov edi, eax
mov eax, dword [esi + 0x5c]
shl edi, cl
mov dword [esp + 0x80], edi
mov edi, eax
shld ebp, eax, cl
xor eax, eax
shl edi, cl
test cl, 0x20
cmovne ebp, edi
cmovne edi, eax
movzx eax, byte [esp + 0x37]
mov dword [esp + 0xa0], eax
mul dword [esp + 0xb8]
mov dword [esp + 0x5c], ebp
xor ebp, ebp
mov dword [esp + 0x58], edi
shrd eax, edx, 3
shr edx, 3
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x58]
mov dword [esp + 0x64], edx
xor edx, edx
shld edx, eax, cl
shl eax, cl
test cl, 0x20
cmovne edx, eax
cmovne eax, ebp
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x6c], edx
test eax, eax
je 0x484a55
mov dword [esp + 0xc4], 0
movzx eax, byte [esi + 0x50]
mov byte [esp + 0x87], al
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x64]
mov ebp, dword [esp + 0x5c]
cmp eax, edi
mov eax, edx
sbb eax, ebp
jae 0x484b00
lea eax, [esp + 0xc4]
mov dword [esp], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 4], eax
call fcn.00427280
mov esi, edx
mov dword [esp + 0xb0], eax
or esi, eax
mov dword [esp + 0xb4], edx
jne 0x484cc0
mov eax, dword [ebx]
mov edi, dword [eax + 0x38]
test edi, edi
je 0x4843c6
call fcn.00483770
mov esi, eax
mov eax, edx
or eax, esi
jne 0x484bd0
mov esi, dword [esp + 0x100]
test esi, esi
jne 0x484aa0
movzx ebx, byte [esp + 0x37]
mov eax, 0xfffffff
mov edx, 0xfff
mov byte [esp + 0x84], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x8c], 0
cmp bl, 0xc
mov dword [esp + 0xac], 0
cmovne edx, eax
cmp bl, 0x10
mov dword [esp + 0x88], edx
mov edx, 0xffff
cmove eax, edx
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xa8], eax
mov esi, dword [esp + 0x94]
mov edi, dword [esp + 0x90]
mov eax, esi
or eax, edi
je 0x48446e
mov eax, dword [esp + 0x8c]
mov edx, 0
cmp eax, edi
mov eax, edx
sbb eax, esi
jae 0x484d50
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
sub esi, dword [esp + 0x60]
sbb edi, dword [esp + 0x64]
mov edx, edi
or edx, esi
je 0x484d50
cmp byte [esp + 0x37], 0xc
mov ebp, dword [esp + 0x60]
je 0x4847c0
add ebp, dword [esp + 0x68]
xor edx, edx
xor ecx, ecx
xor ebx, ebx
mov eax, ebp
div dword [esp + 0x80]
mov dword [esp + 0x2c], edx
mov eax, ebp
xor edx, edx
mov ebp, dword [esp + 0x80]
add eax, ecx
mov ecx, dword [esp + 0x2c]
adc edx, ebx
xor ebx, ebx
sub eax, ecx
mov ecx, ebp
sbb edx, ebx
sub ecx, dword [esp + 0x2c]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], edx
xor edx, edx
cmp ecx, esi
mov eax, ecx
mov ebx, edx
sbb ebx, edi
jb 0x4844fc
mov ebp, dword [esp + 0x54]
movzx ebp, word [ebp + 0x38]
lea ebx, [ebp - 1]
neg ebp
add ebx, esi
add ebx, dword [esp + 0x2c]
and ebp, ebx
cmp esi, ecx
mov ebx, edi
mov dword [esp + 0x78], eax
sbb ebx, edx
mov dword [esp + 0x7c], edx
jae 0x484514
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], edi
mov eax, dword [esp + 0x78]
mov dword [esp + 0xc], ebp
mov edx, dword [esp + 0x9c]
mov dword [esp + 0xc8], 0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0xc8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00415cf0
mov esi, edx
or esi, eax
jne 0x484dda
mov eax, dword [esp + 0xc8]
mov dword [esp + 0xa4], eax
cmp ebp, eax
jne 0x484e88
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0xc4]
mov ecx, 0xffffffff
mov dword [esp + 0x70], eax
mov esi, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
or esi, eax
je 0x4845bc
mov ecx, eax
mov eax, 0xffffffff
sub ecx, dword [esp + 0x8c]
cmove ecx, eax
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0xa0]
xor edx, edx
lea ebp, [eax*8]
lea eax, [ebp + edi - 1]
div edi
cmp eax, ecx
cmovbe ecx, eax
movzx eax, byte [esp + 0x37]
mov dword [esp + 0x44], ecx
cmp al, 0xc
je 0x4845fb
cmp al, 0x10
je 0x4847e0
sub eax, 0x10
test al, 0xef
je 0x4847e0
movzx eax, byte [esp + 0x37]
mul byte [esp + 0x30]
xor edi, edi
mov dword [esp + 0x48], 0
mov ebp, edi
movzx esi, byte [esp + 0x84]
and eax, 7
mov edx, eax
jmp 0x484659
mov eax, dword [esp + 0x30]
add dword [esp + 0x48], 1
add eax, 1
cmp eax, edi
jne 0x484ab5
movzx edx, byte [esp + 0x84]
cmp byte [esp + 0x40], dl
je 0x484f14
mov dword [esp + 0x38], 0
xor esi, esi
mov dword [esp + 0x30], edi
movzx edx, byte [esp + 0x3c]
mov edi, dword [esp + 0x48]
cmp dword [esp + 0x44], edi
jbe 0x484750
cmp dword [esp + 0x4c], ebp
jbe 0x484750
mov eax, dword [esp + 0x70]
movzx ebx, byte [esp + 0x37]
mov ecx, esi
lea edi, [eax + ebp]
mov eax, 8
sub ebx, ecx
sub eax, edx
movzx ecx, byte [edi]
mov byte [esp + 0x84], bl
cmp al, bl
mov byte [esp + 0x40], al
cmova eax, ebx
mov ebx, 8
mov byte [esp + 0x86], cl
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x38]
mov byte [esp + 0x85], al
add eax, edx
sub ebx, eax
mov byte [esp + 0x3c], al
movzx eax, dl
mov byte [esp + 0x2c], bl
mov ebx, eax
mov dword [esp + 0x74], eax
movzx eax, cl
movzx ecx, byte [esp + 0x2c]
shl eax, cl
add ecx, ebx
movzx eax, al
shr eax, cl
mov ecx, esi
shl eax, cl
or edi, eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x484717
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x50]
shr eax, cl
mov ecx, edx
mov edx, 0xff
shl eax, cl
movzx ecx, byte [esp + 0x2c]
shr edx, cl
and eax, edx
not eax
and al, byte [esp + 0x86]
mov byte [ebx], al
movzx ebx, byte [esp + 0x84]
cmp byte [esp + 0x40], bl
jae 0x484620
movzx eax, byte [esp + 0x85]
add esi, eax
mov dword [esp + 0x38], edi
add ebp, 1
mov edi, dword [esp + 0x30]
mov byte [esp + 0x3c], 0
jmp 0x484650
mov eax, esi
mov edi, ebp
mov byte [esp + 0x84], al
movzx eax, dl
mov dword [esp + 0x74], eax
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
add dword [esp + 0x8c], esi
sub ebp, edi
shl ebp, 3
sub ebp, dword [esp + 0x74]
mov ebx, dword [esp + 0x100]
test ebx, ebx
jne 0x484890
test ebp, ebp
jne 0x484d50
mov ecx, dword [esp + 0xf4]
test ecx, ecx
jne 0x4847ab
mov edx, dword [esp + 0x8c]
test edx, edx
jne 0x484d90
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
add dword [esp + 0x60], eax
adc dword [esp + 0x64], edx
jmp 0x484442
mov eax, ebp
xor edx, edx
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
div dword [esp + 0x80]
mov dword [esp + 0x2c], edx
jmp 0x4844ae
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x48477a
mov esi, dword [esp + 0xbc]
mov dword [esp + 0x3c], ebp
xor eax, eax
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x100]
not esi
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x70]
jmp 0x484837
mov ecx, dword [esi + eax*4]
test edi, edi
je 0x484820
mov edx, dword [esp + 0x2c]
and edx, ecx
mov dword [esi + eax*4], edx
lea edx, [eax + 1]
lea ebx, [ebp + edx]
cmp ebx, ecx
jne 0x484860
mov eax, edx
cmp dword [esp + 0x44], edx
je 0x484ad2
cmp byte [esp + 0x37], 0x10
jne 0x484810
movzx ecx, word [esi + eax*2]
test edi, edi
je 0x484820
xor edx, edx
mov word [esi + eax*2], dx
lea edx, [eax + 1]
lea ebx, [ebp + edx]
cmp ebx, ecx
je 0x48482b
mov esi, esi
lea edi, [edi]
imul eax, dword [esp + 0xa0]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
mov ebx, dword [esp + 0x100]
add dword [esp + 0x8c], edx
sub ebp, eax
test ebx, ebx
je 0x484789
nop
lea esi, [esi]
cmp byte [esp + 0x87], 0
mov esi, dword [esp + 0xc4]
je 0x484789
lea edi, [esp + 0xcc]
xor ebx, ebx
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x98]
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0xa4]
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x9c]
mov byte [esp + 0x2c], bl
jmp 0x484942
mov edx, dword [esp + 0xcc]
cmp edx, ebp
jne 0x484c62
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov ebx, edi
cmp esi, eax
sbb ebx, edx
jae 0x484920
mov ecx, dword [esp + 0xa8]
mov ebx, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
call fcn.004a1050
add esi, eax
adc edi, edx
add dword [esp + 0x3c], eax
sub ebp, eax
add esi, dword [esp + 0x58]
movzx edx, byte [esp + 0x87]
adc edi, dword [esp + 0x5c]
add byte [esp + 0x2c], 1
movzx eax, byte [esp + 0x2c]
cmp al, dl
je 0x484cb0
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], ebp
mov dword [esp + 4], esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xcc], 0
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00415e50
mov ebx, edx
or ebx, eax
je 0x4848d5
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa4], ebp
mov dword [esp + 0x2c], eax
call fcn.0041d490
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
mov esi, eax
call ebx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], esi
mov edi, dword [esp + 0x98]
mov ebp, dword [esp + 0x9c]
mov dword [esp + 8], 0x54cc60
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.__s__Error_while_writing_back__Iu_bytes_of_modified_FAT_data_to_offset__I64u:__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], 0x54ccb8
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edx
jmp 0x484b97
mov eax, dword [esp + 0x54]
mov byte [esp + 0x87], 1
mov dword [esp + 0xc4], 0
movzx eax, byte [eax + 0x51]
test al, al
je 0x484356
mov ebp, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
mov ecx, ebp
imul ecx, eax
mul edi
add edx, ecx
add dword [esp + 0x68], eax
adc dword [esp + 0x6c], edx
jmp 0x484356
mov eax, dword [ebx]
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
jmp 0x4843d5
mov eax, edi
mov byte [esp + 0x84], 0
mov edi, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0
jmp 0x484762
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x30], ecx
mov ebp, dword [esp + 0x3c]
add dword [esp + 0x8c], edi
imul eax, edi
sub ebp, eax
jmp 0x48477a
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
call ebx
mov edi, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
mov dword [esp + 8], 0x54cc60
mov dword [esp + 4], str.__s__Attempted_to_start_reading_at_an_entry_beyond_the_end_of_the_active_FAT._Link_byte_index:__I64u_FAT_size:__I64u
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x64]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebp
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], 0x54ccb8
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp + 0xb0], 5
mov dword [esp + 0xb4], 0
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x484bb5
lea edx, [esp + 0xc4]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0041d440
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xb4]
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], esi
mov dword [esp + 0x2c], edx
call fcn.0041d490
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x54cc60
mov dword [esp + 4], str.__s__Error_while_flushing_FAT_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], 0x54ccb8
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], edx
jmp 0x484b97
mov dword [esp + 0x2c], edx
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
call ebx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x54cc60
mov dword [esp + 4], str.__s__Only_managed_to_write_back__Iu_bytes_of_requested__Iu_bytes_of_modified_FAT_data_to_offset__I64u.
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x484b47
mov ebp, dword [esp + 0x44]
jmp 0x484789
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 + 0x10], edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x54cc60
mov dword [esp + 4], str.__s__Failed_to_allocate__Iu_bytes_of_data_for_temporary_FAT_extent_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], 0x54ccb8
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
jmp 0x484b97
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x484d90
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
call ebx
mov dword [esp + 8], 0x54cc60
mov dword [esp + 4], str.__s__Internal_error:_No_clusters_were_processed_and_no_error_thrown.
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x484b47
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0xb8], ebx
je 0x484ed9
mov eax, dword [esp + 0x104]
mov ebx, dword [esp + 0xb8]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x104]
mov eax, dword [esp + 0xf0]
mov dword [ebx], eax
mov eax, ebx
mov ebx, dword [esp + 0x8c]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x30]
mov dword [eax + 0xc], ebx
jmp 0x484b97
mov dword [esp + 4], edx
mov ebx, eax
mov dword [esp], eax
mov dword [esp + 0x2c], edx
call fcn.0041d490
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call esi
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x54cc60
mov dword [esp + 4], str.__s__Error_while_reading__Iu_bytes_of_FAT_data_from_offset__I64u:__lu___s_
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], 0x54ccb8
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], edx
jmp 0x484b97
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
call ebx
mov esi, dword [esp + 0x98]
mov dword [esp + 0x10], ebp
mov edi, dword [esp + 0x9c]
mov dword [esp + 8], 0x54cc60
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.__s__Only_managed_to_read__Iu_bytes_of_requested__Iu_bytes_of_FAT_data_from_offset__I64u.
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x484b47
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
call ebx
mov esi, dword [esp + 0xb8]
mov dword [esp + 8], 0x54cc60
mov dword [esp + 4], str.__s__cur_entry__start_fat_cluster___lu__0x_lX__Circular_FAT_link_or_programming_error_
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], esi
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x484b47
mov dword [esp + 0x30], edi
xor esi, esi
xor edi, edi
jmp 0x484733