Function at 0x484fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
lea esi, [esp + 0x3c]
mov dword [esp + 4], 8
mov dword [esp + 8], esi
mov dword [esp], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.00427280
mov ebx, eax
mov eax, edx
or eax, ebx
jne 0x485250
mov eax, dword [esp + 0x70]
movzx edi, word [eax + 0x38]
movzx ecx, byte [eax + 0x60]
lea eax, [edi*8]
mov dword [esp + 0x24], edi
cdq
idiv ecx
test edx, edx
jne 0x485230
lea eax, [esp + 0x44]
mov dword [esp + 4], 0x48
mov dword [esp + 8], eax
mov dword [esp], 0
call fcn.00427280
mov ebx, eax
mov eax, edx
mov ebp, edx
or eax, ebx
je 0x485160
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0041d490
mov edi, dword [fcn.004a1b90]
mov dword [esp], 2
mov dword [esp + 0x24], eax
call edi
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x48
mov dword [esp + 0x14], edx
mov dword [esp + 8], 0x54cc60
mov dword [esp + 4], str.__s__Error_while_allocating__Iu_bytes_for_fat_fat_buffer:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call edi
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 edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.0041d490
mov dword [esp], 2
mov dword [esp + 0x24], eax
call edi
mov edx, dword [esp + 0x24]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x54cc60
mov dword [esp + 0x10], edx
mov dword [esp + 4], str.__s__Error_while_creating_FAT_buffer:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call edi
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 edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0x40]
test eax, eax
je 0x485138
lea eax, [esp + 0x40]
call fcn.00482fe0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x48514c
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0041d440
add esp, 0x5c
mov eax, ebx
mov edx, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x48]
mov dword [esp], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.00427280
mov edi, edx
mov ebx, eax
mov ebp, edx
or edi, eax
je 0x4852a0
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041d490
mov edi, dword [fcn.004a1b90]
mov dword [esp], 2
mov dword [esp + 0x28], eax
call edi
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0x54cc60
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str.__s__Error_while_allocating__Iu_bytes_for_main_buffer:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call edi
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 edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
lea eax, [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.0041d440
jmp 0x4850b0
lea ebx, [edi + edi*2]
lea eax, [ebx*8]
cdq
idiv ecx
test edx, edx
jne 0x485292
mov dword [esp + 0x24], ebx
jmp 0x485001
mov dword [esp + 4], edx
mov ebp, edx
mov dword [esp], ebx
call fcn.0041d490
mov dword [esp], 2
mov edi, dword [fcn.004a1b90]
mov dword [esp + 0x24], eax
call edi
mov edx, dword [esp + 0x24]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x54cc60
mov dword [esp + 0x10], edx
mov dword [esp + 4], str.__s__Error_while_allocating_memory_for_FAT_struct:__lu___s_
jmp 0x4850e5
imul ecx, dword [esp + 0x24]
mov dword [esp + 0x24], ecx
jmp 0x485001
lea eax, [esp + 0x4c]
mov dword [esp], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.00427280
mov ebx, eax
mov eax, edx
mov ebp, edx
or eax, ebx
jne 0x485380
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x70]
xor edi, edi
xor edx, edx
mov dword [esp + 0x2c], edi
mov esi, dword [ecx + 0x58]
mov dword [eax], ecx
movzx ecx, byte [ecx + 0x3a]
mov dword [esp + 0x28], esi
shld edi, esi, cl
shl esi, cl
test cl, 0x20
cmovne edi, esi
cmovne esi, edx
mov edx, dword [esp + 0x70]
mov dword [eax + 8], esi
mov esi, dword [edx + 0x5c]
mov dword [eax + 0xc], edi
xor edi, edi
add esi, dword [esp + 0x28]
adc edi, dword [esp + 0x2c]
xor edx, edx
mov dword [eax + 0x18], 0
shld edi, esi, cl
shl esi, cl
test cl, 0x20
mov ecx, dword [esp + 0x24]
cmovne edi, esi
cmovne esi, edx
mov edx, dword [esp + 0x48]
mov dword [eax + 0x1c], 0
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 0x3c], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x10], esi
mov dword [eax + 0x40], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x14], edi
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x38], 0
mov dword [edx + 4], eax
mov eax, dword [esp + 0x74]
mov dword [edx], ecx
mov dword [eax], edx
add esp, 0x5c
mov eax, ebx
mov edx, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0041d490
mov edi, dword [fcn.004a1b90]
mov dword [esp], 2
mov dword [esp + 0x28], eax
call edi
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0x54cc60
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str.__s__Error_while_allocating__Iu_bytes_for_completion_buffer:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call edi
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 edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.0041d440
jmp 0x48520f