Function at 0x48a7c0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x5c
mov ebx, eax
mov dword [esp], 0x32
lea edi, [esp + 0x10]
mov ebp, dword [esp + 0x70]
mov edx, edi
call fcn.0048a770
movsx edx, byte [ebx]
mov dword [esp + 8], eax
mov eax, 0x5c8cc8
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
movzx eax, byte [ebx + 1]
test al, 1
jne 0x48a8d5
test al, 2
jne 0x48a910
test al, 4
jne 0x48a940
test al, 8
jne 0x48a970
test al, 0x10
jne 0x48a9a0
test al, 0x40
je 0x48a9d0
mov eax, dword [ebx + 4]
test eax, eax
jne 0x48aa00
cmp dword [ebx + 8], 0x10001
je 0x48a88e
movsx eax, word [ebx + 8]
mov edx, 0x5c8cd1
mov dword [esp + 4], edx
mov dword [esp], esi
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
movzx eax, word [ebx + 0xa]
cmp ax, 0x100
je 0x48a87e
mov dword [esp], esi
cwde
mov dword [esp + 8], eax
mov eax, 0x5c8cc5
mov dword [esp + 4], eax
call sub.msvcrt.dll_fprintf
mov dword [esp + 4], esi
mov dword [esp], 0x7d
call sub.msvcrt.dll_fputc
test ebp, ebp
jne 0x48aab8
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x48aa90
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x48aa66
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x48aa41
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x48aa32
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x48aa20
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], esi
mov eax, 8
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp], 0x5c8cd7
call sub.msvcrt.dll_fwrite
movzx eax, byte [ebx + 1]
test al, 2
je 0x48a811
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 0xc], esi
mov eax, 9
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp], 0x5c8ce0
call sub.msvcrt.dll_fwrite
movzx eax, byte [ebx + 1]
test al, 4
je 0x48a819
nop
mov dword [esp + 0xc], esi
mov ecx, 9
mov edx, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], 0x5c8cea
call sub.msvcrt.dll_fwrite
movzx eax, byte [ebx + 1]
test al, 8
je 0x48a821
nop
mov dword [esp + 0xc], esi
mov eax, 0xb
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp], 0x5c8cf4
call sub.msvcrt.dll_fwrite
movzx eax, byte [ebx + 1]
test al, 0x10
je 0x48a829
nop
mov dword [esp + 0xc], esi
mov eax, 0xb
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp], 0x5c8d00
call sub.msvcrt.dll_fwrite
movzx eax, byte [ebx + 1]
test al, 0x40
jne 0x48a831
nop
mov dword [esp + 0xc], esi
mov eax, 7
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp], 0x5c8d0c
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 4]
test eax, eax
je 0x48a83c
lea esi, [esi]
mov dword [esp + 8], eax
mov ecx, 0x5c8d14
mov dword [esp + 4], ecx
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
jmp 0x48a83c
mov dword [esp], ebp
mov edx, esi
call fcn.0048a7c0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
mov edx, esi
call fcn.0048a7c0
jmp 0x48a8c2
mov dword [esp + 4], esi
mov dword [esp], 0xa
call sub.msvcrt.dll_fputc
mov dword [esp + 4], esi
mov dword [esp], 0xa
call sub.msvcrt.dll_fputc
jmp 0x48a8b7
mov dword [esp], 0x32
mov edx, edi
call fcn.0048a770
mov dword [esp + 8], eax
mov eax, 0x5c8d1b
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
jmp 0x48a8ac
mov dword [esp], 0x32
mov edx, edi
call fcn.0048a770
mov dword [esp + 8], eax
mov eax, 0x5c8d21
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
jmp 0x48a8a1
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x14]
mov eax, dword [eax]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, 0x5c8d27
mov dword [esp + 4], eax
call sub.msvcrt.dll_fprintf
jmp 0x48a896