Function at 0x4887b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x458c
call fcn.00440b70
mov eax, dword [0x4fa2a0]
xor eax, ebp
mov dword [ebp - 0xc], eax
push ebx
mov dword [ebp - 0x4584], ecx
cmp dword [ebp + 0x14], 3
je 0x4887ea
cmp dword [ebp + 0x14], 2
je 0x4887ea
cmp dword [ebp + 0x14], 1
je 0x4887ea
mov eax, 0x10000
jmp 0x488cbb
cmp dword [ebp + 0x14], 3
jne 0x488917
mov eax, dword [ebp - 0x4584]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x4888ab
mov edx, dword [ebp - 0x4584]
cmp dword [edx + 4], 0xffffffff
je 0x488823
mov eax, dword [ebp - 0x4584]
mov ecx, dword [eax]
push ecx
call fcn.00487ce0
add esp, 4
mov edx, dword [ebp - 0x4584]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x4584]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x48884a
mov eax, 0x10000
jmp 0x488cbb
mov eax, dword [ebp - 0x4584]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x48886b
mov eax, dword [ebp - 0x4584]
mov ecx, dword [eax]
push ecx
call fcn.004872a0
add esp, 4
mov edx, dword [ebp - 0x4584]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x48888e
mov edx, dword [ebp - 0x4584]
mov eax, dword [edx]
push eax
call fcn.00487310
add esp, 4
jmp 0x48886b
mov ecx, dword [ebp - 0x4584]
mov edx, dword [ecx]
push edx
call fcn.00487820
add esp, 4
mov eax, dword [ebp - 0x4584]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x4584]
mov edx, dword [ecx]
push edx
call fcn.004879e0
add esp, 0xc
mov dword [ebp - 0x414c], eax
cmp dword [ebp - 0x414c], 0
jle 0x4888dd
mov eax, 0x600
jmp 0x488cbb
mov eax, dword [ebp - 0x4584]
mov ecx, dword [eax]
push ecx
call fcn.00487ce0
add esp, 4
mov edx, dword [ebp - 0x4584]
mov dword [edx + 4], 0xffffffff
cmp dword [ebp - 0x414c], 0
jne 0x48890d
xor eax, eax
jmp 0x488cbb
mov eax, 0x5000000
jmp 0x488cbb
mov eax, dword [ebp - 0x4584]
cmp dword [eax + 4], 0xffffffff
je 0x488934
mov ecx, dword [ebp - 0x4584]
mov edx, dword [ecx]
push edx
call fcn.00487ce0
add esp, 4
mov eax, dword [ebp - 0x4584]
mov dword [eax + 4], 0xffffffff
mov ecx, dword [ebp - 0x4584]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 4]
jl 0x48895b
mov eax, 0x10000
jmp 0x488cbb
mov ecx, dword [ebp - 0x4584]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x10]
jge 0x48897c
mov ecx, dword [ebp - 0x4584]
mov edx, dword [ecx]
push edx
call fcn.004872a0
add esp, 4
mov eax, dword [ebp - 0x4584]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp + 8]
jge 0x48899f
mov eax, dword [ebp - 0x4584]
mov ecx, dword [eax]
push ecx
call fcn.00487310
add esp, 4
jmp 0x48897c
lea edx, [ebp - 0x140]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4584]
call fcn.00487f10
mov ecx, dword [ebp - 0x38]
and ecx, 0x10
je 0x488a08
cmp dword [ebp + 0x14], 1
jne 0x4889ca
xor eax, eax
jmp 0x488cbb
push 0x103
lea edx, [ebp - 0x4358]
push edx
lea eax, [ebp - 0x13c]
push eax
call fcn.00488cd0
add esp, 0xc
lea ecx, [ebp - 0x4358]
push ecx
mov edx, dword [ebp - 0x4584]
add edx, 0x138
push edx
call fcn.00488690
add esp, 8
xor eax, eax
jmp 0x488cbb
cmp dword [ebp + 0x14], 1
jne 0x488a19
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x488b96
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x435c], ecx
mov edx, dword [ebp - 0x435c]
mov dword [ebp - 0x4360], edx
mov eax, dword [ebp - 0x4360]
movzx ecx, word [eax]
test ecx, ecx
je 0x488a77
mov edx, dword [ebp - 0x4360]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x488a57
mov ecx, dword [ebp - 0x4360]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x488a66
mov eax, dword [ebp - 0x4360]
add eax, 2
mov dword [ebp - 0x435c], eax
mov ecx, dword [ebp - 0x4360]
add ecx, 2
mov dword [ebp - 0x4360], ecx
jmp 0x488a2e
mov edx, dword [ebp - 0x435c]
cmp edx, dword [ebp + 0xc]
je 0x488b78
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x4570]
push ecx
call fcn.004bb2de
add esp, 8
mov edx, dword [ebp - 0x435c]
sub edx, dword [ebp + 0xc]
sar edx, 1
xor eax, eax
mov word [ebp + edx*2 - 0x4572], ax
movzx ecx, word [ebp - 0x4570]
cmp ecx, 0x2f
je 0x488ade
movzx edx, word [ebp - 0x4570]
cmp edx, 0x5c
je 0x488ade
movzx eax, word [ebp - 0x456e]
cmp eax, 0x3a
je 0x488ade
mov dword [ebp - 0x4588], 0
jmp 0x488ae8
mov dword [ebp - 0x4588], 1
mov cl, byte [ebp - 0x4588]
mov byte [ebp - 0x4361], cl
push 0x4cdfb4
lea edx, [ebp - 0x4570]
push edx
call fcn.0042f562
add esp, 8
mov dword [ebp - 0x4580], eax
movzx ebx, byte [ebp - 0x4361]
xor eax, eax
cmp dword [ebp - 0x4580], 0
setne al
push 0x4cdfac
lea ecx, [ebp - 0x4570]
push ecx
mov dword [ebp - 0x458c], eax
call fcn.0042f562
add esp, 8
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0x458c]
or ecx, eax
or ebx, ecx
mov byte [ebp - 0x4361], bl
movzx edx, byte [ebp - 0x4361]
test edx, edx
jne 0x488b78
lea eax, [ebp - 0x4570]
push eax
mov ecx, dword [ebp - 0x4584]
add ecx, 0x138
push ecx
call fcn.00488690
add esp, 8
push 0
mov edx, dword [ebp - 0x38]
push edx
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x488ba6
mov eax, 0x200
jmp 0x488cbb
mov ecx, dword [ebp - 0x4584]
mov edx, dword [ecx]
push edx
call fcn.00487820
add esp, 4
mov byte [ebp - 0x142], 0
push 0x4000
lea eax, [ebp - 0x4148]
push eax
mov ecx, dword [ebp - 0x4584]
mov edx, dword [ecx]
push edx
call fcn.004879e0
add esp, 0xc
mov dword [ebp - 0x4574], eax
cmp dword [ebp - 0x4574], 0
jge 0x488bf3
mov byte [ebp - 0x142], 1
jmp 0x488c39
cmp dword [ebp - 0x4574], 0
jne 0x488bfe
jmp 0x488c39
push 0
lea eax, [ebp - 0x457c]
push eax
mov ecx, dword [ebp - 0x4574]
push ecx
lea edx, [ebp - 0x4148]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4578], eax
cmp dword [ebp - 0x4578], 0
jne 0x488c37
mov byte [ebp - 0x142], 1
jmp 0x488c39
jmp 0x488bbe
mov byte [ebp - 0x141], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jne 0x488c65
movzx edx, byte [ebp - 0x142]
test edx, edx
jne 0x488c65
mov byte [ebp - 0x141], 1
movzx eax, byte [ebp - 0x141]
test eax, eax
je 0x488c86
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x488c96
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4584]
mov ecx, dword [eax]
push ecx
call fcn.00487ce0
add esp, 4
movzx edx, byte [ebp - 0x142]
test edx, edx
je 0x488cb9
mov eax, 0x400
jmp 0x488cbb
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0042cf77
mov esp, ebp
pop ebp
ret 0x10