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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov ebp, dword [eax]
test ebp, ebp
jne 0x48a8b0
mov dword [esp], ebx
call fcn.0046d8c0
mov esi, eax
mov eax, edx
mov edi, edx
or eax, esi
jne 0x48a820
lea eax, [esp + 0x6c]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 8
mov dword [esp + 4], 0x550008
mov eax, dword [ebx + 0xd8]
mov dword [esp], eax
call fcn.0042ac40
test eax, eax
je 0x48a950
mov ecx, dword [esp + 0x6c]
mov esi, dword [ecx + 0x18]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ebp, edx
or ebp, eax
je 0x48a930
add eax, 1
mov dword [esi + 8], eax
mov eax, dword [esp + 0xa0]
adc edx, 0
mov dword [esi + 0xc], edx
mov dword [eax], ecx
mov dword [esp], ebx
call fcn.0046d8d0
mov esi, eax
mov eax, edx
mov edi, edx
or eax, esi
je 0x48a897
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.0041d490
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
mov ebp, eax
call ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x54da40
mov dword [esp + 4], str.__s__Error_while_unlocking_open_irefs_table:__lu___s_
jmp 0x48a855
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.0041d490
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
mov ebp, eax
call ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x54da40
mov dword [esp + 4], str.__s__Error_while_locking_open_iref_table:__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], 0x54da76
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x8c
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
mov esi, 0x16
xor edi, edi
call ebx
mov dword [esp + 8], 0x54da40
mov dword [esp + 4], str.__s__This_function_does_not_accept_preallocated_space_for_the_target_inode_reference.
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], 0x54da76
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x8c
mov eax, esi
mov edx, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ecx + 0xc]
mov edi, dword [edi + 0x30]
add dword [edi + 0x88], 1
adc dword [edi + 0x8c], 0
jmp 0x48a7b5
lea eax, [esp + 0x70]
call fcn.00487660
mov esi, eax
mov eax, edx
mov edi, edx
or eax, esi
jne 0x48abc0
mov ebp, dword [ebx + 0x20]
cmp ebp, 2
je 0x48ab92
movzx ecx, byte [ebx + 0x3a]
mov eax, dword [ebx + 0xa8]
xor edi, edi
mov edx, dword [ebx + 0xac]
mov esi, dword [ebx + 0xa0]
shld edx, eax, cl
shl eax, cl
test cl, 0x20
cmovne edx, eax
cmovne eax, edi
mov edi, dword [ebx + 0xa4]
xor ecx, ecx
cmp ebp, 2
mov dword [esp + 0x2c], esi
setne cl
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x24], edx
mov edx, ebx
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0x54fff8
mov dword [esp + 0x38], 0x54fff8
mov dword [esp + 0x34], 0x54fff8
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], 0
call fcn.00488610
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x78], 0
mov edx, dword [ebx + 0xd8]
mov dword [esp + 0x7c], 0
add eax, 8
mov dword [ecx], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x74]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x10], 4
mov dword [esp + 8], 8
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0042b530
mov esi, eax
mov eax, edx
mov edi, edx
or eax, esi
je 0x48a7ca
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.0041d490
mov ebp, dword [fcn.004a1b90]
mov dword [esp], 2
mov dword [esp + 0x5c], eax
call ebp
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x54da40
mov dword [esp + 0x10], edx
mov dword [esp + 4], str.__s__Error_while_inserting_root_dir_in_open_irefs:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebp
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x54da76
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebp
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], ebx
call fcn.0046d8d0
mov ebx, eax
mov eax, edx
or eax, ebx
je 0x48a897
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.0041d490
mov dword [esp], 2
mov dword [esp + 0x5c], eax
call ebp
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x54da40
mov dword [esp + 0x10], edx
mov dword [esp + 4], str.__s__Error_while_unlocking_open_irefs_table:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebp
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x54da76
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebp
mov dword [esp], eax
call sub.msvcrt.dll_fflush
jmp 0x48a897
movzx ecx, byte [ebx + 0x40]
mov eax, dword [ebx + 0x98]
xor edx, edx
xor esi, esi
shld edx, eax, cl
shl eax, cl
test cl, 0x20
cmovne edx, eax
cmovne eax, esi
mov esi, dword [ebx + 0x94]
xor edi, edi
jmp 0x48a99f
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.0041d490
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
mov ebp, eax
call ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x54da40
mov dword [esp + 4], str.__s__Failed_to_allocate_memory_for_new_fat_inode:__lu___s_
jmp 0x48a855