Function at 0x490d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4288
call fcn.004b5840
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x4288]
mov ecx, 0x10a2
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x56eab8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x14], 3
je 0x490dad
cmp dword [ebp + 0x14], 2
je 0x490dad
cmp dword [ebp + 0x14], 1
je 0x490dad
mov eax, 0x10000
jmp 0x491235
cmp dword [ebp + 0x14], 3
jne 0x490ea7
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x490e4d
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 0xffffffff
je 0x490ddd
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.0048ff40
add esp, 4
mov edx, dword [ebp - 8]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x490dfe
mov eax, 0x10000
jmp 0x491235
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x490e19
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.0048f230
add esp, 4
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x490e36
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call fcn.0048f2c0
add esp, 4
jmp 0x490e19
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call fcn.0048f840
add esp, 4
mov eax, dword [ebp - 8]
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 - 8]
mov edx, dword [ecx]
push edx
call fcn.0048fa90
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x490e76
mov eax, 0x600
jmp 0x491235
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.0048ff40
add esp, 4
mov edx, dword [ebp - 8]
mov dword [edx + 4], 0xffffffff
cmp dword [ebp - 0xc], 0
jne 0x490e9d
xor eax, eax
jmp 0x491235
mov eax, 0x5000000
jmp 0x491235
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0xffffffff
je 0x490ebe
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call fcn.0048ff40
add esp, 4
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0xffffffff
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 4]
jl 0x490edf
mov eax, 0x10000
jmp 0x491235
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x10]
jge 0x490efa
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call fcn.0048f230
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp + 8]
jge 0x490f17
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.0048f2c0
add esp, 4
jmp 0x490efa
lea edx, [ebp - 0x13c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00490320
mov ecx, dword [ebp - 0x34]
and ecx, 0x10
je 0x490f5e
cmp dword [ebp + 0x14], 1
jne 0x490f3f
xor eax, eax
jmp 0x491235
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp - 8]
add eax, 0x138
push eax
call fcn.00490c00
add esp, 8
xor eax, eax
jmp 0x491235
cmp dword [ebp + 0x14], 1
jne 0x490f72
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x144], ecx
jmp 0x4910dd
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x14c]
movsx edx, byte [ecx]
test edx, edx
je 0x490fd0
mov eax, dword [ebp - 0x14c]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x490fb0
mov edx, dword [ebp - 0x14c]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x490fbf
mov ecx, dword [ebp - 0x14c]
add ecx, 1
mov dword [ebp - 0x148], ecx
mov edx, dword [ebp - 0x14c]
add edx, 1
mov dword [ebp - 0x14c], edx
jmp 0x490f87
mov eax, dword [ebp - 0x148]
cmp eax, dword [ebp + 0xc]
je 0x4910b3
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x254]
push edx
call fcn.004b2700
add esp, 8
mov eax, dword [ebp - 0x148]
sub eax, dword [ebp + 0xc]
mov byte [ebp + eax - 0x255], 0
movsx ecx, byte [ebp - 0x254]
cmp ecx, 0x2f
je 0x491033
movsx edx, byte [ebp - 0x254]
cmp edx, 0x5c
je 0x491033
movsx eax, byte [ebp - 0x253]
cmp eax, 0x3a
je 0x491033
mov dword [ebp - 0x4288], 0
jmp 0x49103d
mov dword [ebp - 0x4288], 1
mov cl, byte [ebp - 0x4288]
mov byte [ebp - 0x259], cl
movzx ebx, byte [ebp - 0x259]
push 0x54a4d4
lea edx, [ebp - 0x254]
push edx
call fcn.00453850
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
neg esi
push 0x54a4d8
lea eax, [ebp - 0x254]
push eax
call fcn.00453850
add esp, 8
neg eax
sbb eax, eax
neg eax
or esi, eax
or ebx, esi
mov byte [ebp - 0x259], bl
movzx ecx, byte [ebp - 0x259]
test ecx, ecx
jne 0x4910b3
lea edx, [ebp - 0x254]
push edx
mov eax, dword [ebp - 8]
add eax, 0x138
push eax
call fcn.00490c00
add esp, 8
mov esi, esp
push 0
mov ecx, dword [ebp - 0x34]
push ecx
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.004ad900
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0xffffffff
jne 0x4910f0
mov eax, 0x200
jmp 0x491235
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.0048f840
add esp, 4
mov byte [ebp - 0x4265], 0
push 0x4000
lea edx, [ebp - 0x4260]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call fcn.0048fa90
add esp, 0xc
mov dword [ebp - 0x426c], eax
cmp dword [ebp - 0x426c], 0
jge 0x491137
mov byte [ebp - 0x4265], 1
jmp 0x49118c
cmp dword [ebp - 0x426c], 0
jne 0x491142
jmp 0x49118c
mov esi, esp
push 0
lea edx, [ebp - 0x4274]
push edx
mov eax, dword [ebp - 0x426c]
push eax
lea ecx, [ebp - 0x4260]
push ecx
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.004ad900
mov dword [ebp - 0x427c], eax
cmp dword [ebp - 0x427c], 0
jne 0x491187
mov byte [ebp - 0x4265], 1
jmp 0x49118c
jmp 0x491105
mov byte [ebp - 0x427d], 0
mov esi, esp
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp esi, esp
call fcn.004ad900
mov dword [ebp - 0x4284], eax
cmp dword [ebp - 0x4284], 1
jne 0x4911ca
movzx ecx, byte [ebp - 0x4265]
test ecx, ecx
jne 0x4911ca
mov byte [ebp - 0x427d], 1
movzx edx, byte [ebp - 0x427d]
test edx, edx
je 0x4911f7
mov esi, esp
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp esi, esp
call fcn.004ad900
cmp dword [ebp + 0x14], 1
je 0x491213
mov esi, esp
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004ad900
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call fcn.0048ff40
add esp, 4
movzx ecx, byte [ebp - 0x4265]
test ecx, ecx
je 0x491233
mov eax, 0x400
jmp 0x491235
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x491268]
call fcn.004ad930
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad8f0
add esp, 0x4288
cmp ebp, esp
call fcn.004ad900
mov esp, ebp
pop ebp
ret 0x10