Function at 0x4119f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
mov eax, dword [0x46900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x344], ecx
cmp dword [ebp + 0x14], 3
je 0x411a25
cmp dword [ebp + 0x14], 2
je 0x411a25
cmp dword [ebp + 0x14], 1
je 0x411a25
mov eax, 0x10000
jmp 0x4120e0
cmp dword [ebp + 0x14], 3
jne 0x411b82
mov eax, dword [ebp - 0x344]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x411af3
mov edx, dword [ebp - 0x344]
cmp dword [edx + 4], 0xffffffff
je 0x411a5e
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax]
push ecx
call fcn.00410670
add esp, 4
mov edx, dword [ebp - 0x344]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x411a85
mov eax, 0x10000
jmp 0x4120e0
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x411aa6
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax]
push ecx
call fcn.0040fa00
add esp, 4
mov edx, dword [ebp - 0x344]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x411ac9
mov edx, dword [ebp - 0x344]
mov eax, dword [edx]
push eax
call fcn.0040fa80
add esp, 4
jmp 0x411aa6
mov ecx, dword [ebp - 0x344]
mov edx, dword [ecx + 0x138]
push edx
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax]
push ecx
call fcn.0040ff50
add esp, 8
mov edx, dword [ebp - 0x344]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
lea ecx, [ebp - 0x20d]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x344]
mov edx, dword [ecx]
push edx
call fcn.00410250
add esp, 0x10
mov dword [ebp - 0x368], eax
cmp dword [ebp - 0x368], 0
jg 0x411b40
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax]
push ecx
call fcn.00410670
add esp, 4
mov edx, dword [ebp - 0x344]
mov dword [edx + 4], 0xffffffff
movzx eax, byte [ebp - 0x20d]
test eax, eax
je 0x411b52
xor eax, eax
jmp 0x4120e0
cmp dword [ebp - 0x368], 0
jle 0x411b65
mov eax, 0x600
jmp 0x4120e0
cmp dword [ebp - 0x368], 0xffffff96
jne 0x411b78
mov eax, 0x1000
jmp 0x4120e0
mov eax, 0x5000000
jmp 0x4120e0
mov ecx, dword [ebp - 0x344]
cmp dword [ecx + 4], 0xffffffff
je 0x411b9f
mov edx, dword [ebp - 0x344]
mov eax, dword [edx]
push eax
call fcn.00410670
add esp, 4
mov ecx, dword [ebp - 0x344]
mov dword [ecx + 4], 0xffffffff
mov edx, dword [ebp - 0x344]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jl 0x411bc6
mov eax, 0x10000
jmp 0x4120e0
mov edx, dword [ebp - 0x344]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x10]
jge 0x411be7
mov edx, dword [ebp - 0x344]
mov eax, dword [edx]
push eax
call fcn.0040fa00
add esp, 4
mov ecx, dword [ebp - 0x344]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp + 8]
jge 0x411c0a
mov ecx, dword [ebp - 0x344]
mov edx, dword [ecx]
push edx
call fcn.0040fa80
add esp, 4
jmp 0x411be7
lea eax, [ebp - 0x340]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x344]
call fcn.00410ad0
mov edx, dword [ebp - 0x238]
and edx, 0x10
je 0x411d03
cmp dword [ebp + 0x14], 1
jne 0x411c3c
xor eax, eax
jmp 0x4120e0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x350], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x350]
movsx ecx, byte [eax + edx]
cmp ecx, 0x2f
je 0x411cac
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x350]
movsx edx, byte [ecx + eax]
cmp edx, 0x5c
je 0x411cac
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x350]
movsx eax, byte [edx + ecx]
test eax, eax
je 0x411ca0
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 0x350]
movsx eax, byte [edx + ecx]
cmp eax, 0x3a
je 0x411cac
mov dword [ebp - 0x36c], 0
jmp 0x411cb6
mov dword [ebp - 0x36c], 1
mov cl, byte [ebp - 0x36c]
mov byte [ebp - 0x349], cl
movzx edx, byte [ebp - 0x349]
test edx, edx
je 0x411ce0
mov eax, dword [ebp - 0x350]
push eax
push 0
call fcn.00411840
add esp, 8
jmp 0x411cfc
mov ecx, dword [ebp - 0x350]
push ecx
mov edx, dword [ebp - 0x344]
add edx, 0x140
push edx
call fcn.00411840
add esp, 8
xor eax, eax
jmp 0x4120e0
cmp dword [ebp + 0x14], 1
jne 0x411d17
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x360], eax
jmp 0x411f30
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x364], ecx
mov edx, dword [ebp - 0x364]
mov dword [ebp - 0x358], edx
mov eax, dword [ebp - 0x358]
mov dword [ebp - 0x354], eax
mov ecx, dword [ebp - 0x354]
movsx edx, byte [ecx]
test edx, edx
je 0x411d81
mov eax, dword [ebp - 0x354]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x411d61
mov edx, dword [ebp - 0x354]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x411d70
mov ecx, dword [ebp - 0x354]
add ecx, 1
mov dword [ebp - 0x358], ecx
mov edx, dword [ebp - 0x354]
add edx, 1
mov dword [ebp - 0x354], edx
jmp 0x411d38
mov eax, dword [ebp - 0x364]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00412370
add esp, 8
mov edx, dword [ebp - 0x358]
cmp edx, dword [ebp - 0x364]
jne 0x411dd6
mov eax, 1
imul ecx, eax, 0
mov dword [ebp - 0x370], ecx
cmp dword [ebp - 0x370], 0x104
jae 0x411dc1
jmp 0x411dc6
call fcn.0042938a
mov edx, dword [ebp - 0x370]
mov byte [ebp + edx - 0x108], 0
jmp 0x411e09
mov eax, dword [ebp - 0x358]
sub eax, dword [ebp - 0x364]
mov dword [ebp - 0x374], eax
cmp dword [ebp - 0x374], 0x104
jae 0x411df6
jmp 0x411dfb
call fcn.0042938a
mov ecx, dword [ebp - 0x374]
mov byte [ebp + ecx - 0x108], 0
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0x108]
cmp ecx, 0x2f
je 0x411e68
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0x108]
cmp ecx, 0x5c
je 0x411e68
mov edx, 1
imul eax, edx, 0
movsx ecx, byte [ebp + eax - 0x108]
test ecx, ecx
je 0x411e5c
mov edx, 1
shl edx, 0
movsx eax, byte [ebp + edx - 0x108]
cmp eax, 0x3a
je 0x411e68
mov dword [ebp - 0x378], 0
jmp 0x411e72
mov dword [ebp - 0x378], 1
mov cl, byte [ebp - 0x378]
mov byte [ebp - 0x34a], cl
movzx edx, byte [ebp - 0x34a]
test edx, edx
je 0x411ebf
mov eax, dword [ebp - 0x358]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0x460eb0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push 0
call fcn.00411840
add esp, 8
jmp 0x411f09
mov ecx, dword [ebp - 0x358]
push ecx
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x344]
add eax, 0x140
push eax
push str._s_s_s
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x344]
add eax, 0x140
push eax
call fcn.00411840
add esp, 8
push 0
mov ecx, dword [ebp - 0x238]
push ecx
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x360], eax
cmp dword [ebp - 0x360], 0xffffffff
jne 0x411f43
mov eax, 0x200
jmp 0x4120e0
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax + 0x138]
push ecx
mov edx, dword [ebp - 0x344]
mov eax, dword [edx]
push eax
call fcn.0040ff50
add esp, 8
mov ecx, dword [ebp - 0x344]
cmp dword [ecx + 0x13c], 0
jne 0x411f95
push 0x4000
call fcn.00429464
add esp, 4
mov dword [ebp - 0x37c], eax
mov edx, dword [ebp - 0x344]
mov eax, dword [ebp - 0x37c]
mov dword [edx + 0x13c], eax
mov dword [ebp - 0x348], 0
cmp dword [ebp - 0x348], 0
jne 0x41207e
lea ecx, [ebp - 0x20e]
push ecx
push 0x4000
mov edx, dword [ebp - 0x344]
mov eax, dword [edx + 0x13c]
push eax
mov ecx, dword [ebp - 0x344]
mov edx, dword [ecx]
push edx
call fcn.00410250
add esp, 0x10
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0xffffff96
jne 0x411ff4
mov dword [ebp - 0x348], 0x1000
jmp 0x41207e
cmp dword [ebp - 0x35c], 0
jge 0x412009
mov dword [ebp - 0x348], 0x5000000
jmp 0x41207e
cmp dword [ebp - 0x35c], 0
jle 0x412057
push 0
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x35c]
push ecx
mov edx, dword [ebp - 0x344]
mov eax, dword [edx + 0x13c]
push eax
mov ecx, dword [ebp - 0x360]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0
jne 0x412057
mov dword [ebp - 0x348], 0x400
jmp 0x41207e
movzx edx, byte [ebp - 0x20e]
test edx, edx
je 0x412064
jmp 0x41207e
cmp dword [ebp - 0x35c], 0
jne 0x412079
mov dword [ebp - 0x348], 0x5000000
jmp 0x41207e
jmp 0x411f9f
cmp dword [ebp - 0x348], 0
jne 0x4120a9
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x4120bc
mov ecx, dword [ebp - 0x360]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x344]
mov eax, dword [edx]
push eax
call fcn.00410670
add esp, 4
cmp dword [ebp - 0x348], 0
je 0x4120de
mov eax, dword [ebp - 0x348]
jmp 0x4120e0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004291f2
mov esp, ebp
pop ebp
ret 0x10