Function at 0x411d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x452550]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x33c], ecx
cmp dword [ebp + 0x14], 3
je 0x411d35
cmp dword [ebp + 0x14], 2
je 0x411d35
cmp dword [ebp + 0x14], 1
je 0x411d35
mov eax, 0x10000
jmp 0x412443
cmp dword [ebp + 0x14], 3
jne 0x411e92
mov eax, dword [ebp - 0x33c]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x411e03
mov edx, dword [ebp - 0x33c]
cmp dword [edx + 4], 0xffffffff
je 0x411d6e
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call fcn.004108f0
add esp, 4
mov edx, dword [ebp - 0x33c]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x411d95
mov eax, 0x10000
jmp 0x412443
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x411db6
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call fcn.0040fe20
add esp, 4
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x411dd9
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
push eax
call fcn.0040fea0
add esp, 4
jmp 0x411db6
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx + 0x138]
push edx
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call fcn.004101f0
add esp, 8
mov edx, dword [ebp - 0x33c]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
lea ecx, [ebp - 0x347]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx]
push edx
call fcn.004104d0
add esp, 0x10
mov dword [ebp - 0x36c], eax
cmp dword [ebp - 0x36c], 0
jg 0x411e50
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call fcn.004108f0
add esp, 4
mov edx, dword [ebp - 0x33c]
mov dword [edx + 4], 0xffffffff
movzx eax, byte [ebp - 0x347]
test eax, eax
je 0x411e62
xor eax, eax
jmp 0x412443
cmp dword [ebp - 0x36c], 0
jle 0x411e75
mov eax, 0x600
jmp 0x412443
cmp dword [ebp - 0x36c], 0xffffff96
jne 0x411e88
mov eax, 0x1000
jmp 0x412443
mov eax, 0x5000000
jmp 0x412443
mov ecx, dword [ebp - 0x33c]
cmp dword [ecx + 4], 0xffffffff
je 0x411eaf
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
push eax
call fcn.004108f0
add esp, 4
mov ecx, dword [ebp - 0x33c]
mov dword [ecx + 4], 0xffffffff
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jl 0x411ed6
mov eax, 0x10000
jmp 0x412443
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x10]
jge 0x411ef7
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
push eax
call fcn.0040fe20
add esp, 4
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp + 8]
jge 0x411f1a
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx]
push edx
call fcn.0040fea0
add esp, 4
jmp 0x411ef7
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x33c]
call fcn.00410e10
mov edx, dword [ebp - 0x230]
and edx, 0x10
je 0x412013
cmp dword [ebp + 0x14], 1
jne 0x411f4c
xor eax, eax
jmp 0x412443
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34c], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x34c]
movsx ecx, byte [eax + edx]
cmp ecx, 0x2f
je 0x411fbc
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x34c]
movsx edx, byte [ecx + eax]
cmp edx, 0x5c
je 0x411fbc
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x34c]
movsx eax, byte [edx + ecx]
test eax, eax
je 0x411fb0
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 0x34c]
movsx eax, byte [edx + ecx]
cmp eax, 0x3a
je 0x411fbc
mov dword [ebp - 0x378], 0
jmp 0x411fc6
mov dword [ebp - 0x378], 1
mov cl, byte [ebp - 0x378]
mov byte [ebp - 0x346], cl
movzx edx, byte [ebp - 0x346]
test edx, edx
je 0x411ff0
mov eax, dword [ebp - 0x34c]
push eax
push 0
call fcn.00411a70
add esp, 8
jmp 0x41200c
mov ecx, dword [ebp - 0x34c]
push ecx
mov edx, dword [ebp - 0x33c]
add edx, 0x140
push edx
call fcn.00411a70
add esp, 8
xor eax, eax
jmp 0x412443
cmp dword [ebp + 0x14], 1
jne 0x412027
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x358], eax
jmp 0x412293
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x360], ecx
mov edx, dword [ebp - 0x360]
mov dword [ebp - 0x354], edx
mov eax, dword [ebp - 0x354]
mov dword [ebp - 0x350], eax
mov ecx, dword [ebp - 0x350]
movsx edx, byte [ecx]
test edx, edx
je 0x412091
mov eax, dword [ebp - 0x350]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x412071
mov edx, dword [ebp - 0x350]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x412080
mov ecx, dword [ebp - 0x350]
add ecx, 1
mov dword [ebp - 0x354], ecx
mov edx, dword [ebp - 0x350]
add edx, 1
mov dword [ebp - 0x350], edx
jmp 0x412048
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x368], eax
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x364], ecx
mov edx, dword [ebp - 0x364]
mov dword [ebp - 0x388], edx
mov eax, dword [ebp - 0x368]
mov cl, byte [eax]
mov byte [ebp - 0x33d], cl
mov edx, dword [ebp - 0x364]
mov al, byte [ebp - 0x33d]
mov byte [edx], al
mov ecx, dword [ebp - 0x368]
add ecx, 1
mov dword [ebp - 0x368], ecx
mov edx, dword [ebp - 0x364]
add edx, 1
mov dword [ebp - 0x364], edx
cmp byte [ebp - 0x33d], 0
jne 0x4120b5
mov eax, dword [ebp - 0x354]
cmp eax, dword [ebp - 0x360]
jne 0x412137
mov ecx, 1
imul edx, ecx, 0
mov dword [ebp - 0x37c], edx
cmp dword [ebp - 0x37c], 0x104
jae 0x412122
jmp 0x412127
call fcn.00428f78
mov eax, dword [ebp - 0x37c]
mov byte [ebp + eax - 0x108], 0
jmp 0x41216a
mov ecx, dword [ebp - 0x354]
sub ecx, dword [ebp - 0x360]
mov dword [ebp - 0x374], ecx
cmp dword [ebp - 0x374], 0x104
jae 0x412157
jmp 0x41215c
call fcn.00428f78
mov edx, dword [ebp - 0x374]
mov byte [ebp + edx - 0x108], 0
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x108]
cmp edx, 0x2f
je 0x4121c9
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x108]
cmp edx, 0x5c
je 0x4121c9
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x108]
test edx, edx
je 0x4121bd
mov eax, 1
shl eax, 0
movsx ecx, byte [ebp + eax - 0x108]
cmp ecx, 0x3a
je 0x4121c9
mov dword [ebp - 0x370], 0
jmp 0x4121d3
mov dword [ebp - 0x370], 1
mov dl, byte [ebp - 0x370]
mov byte [ebp - 0x348], dl
movzx eax, byte [ebp - 0x348]
test eax, eax
je 0x412220
mov ecx, dword [ebp - 0x354]
push ecx
lea edx, [ebp - 0x108]
push edx
push str._s_s
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x108]
push ecx
push 0
call fcn.00411a70
add esp, 8
jmp 0x41226c
mov edx, dword [ebp - 0x354]
push edx
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x33c]
add ecx, 0x140
push ecx
push str._s_s_s
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x33c]
add ecx, 0x140
push ecx
call fcn.00411a70
add esp, 8
push 0
mov edx, dword [ebp - 0x230]
push edx
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0xffffffff
jne 0x4122a6
mov eax, 0x200
jmp 0x412443
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx + 0x138]
push edx
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call fcn.004101f0
add esp, 8
mov edx, dword [ebp - 0x33c]
cmp dword [edx + 0x13c], 0
jne 0x4122f8
push 0x4000
call fcn.0041533a
add esp, 4
mov dword [ebp - 0x384], eax
mov eax, dword [ebp - 0x33c]
mov ecx, dword [ebp - 0x384]
mov dword [eax + 0x13c], ecx
mov dword [ebp - 0x344], 0
cmp dword [ebp - 0x344], 0
jne 0x4123e1
lea edx, [ebp - 0x345]
push edx
push 0x4000
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
push eax
call fcn.004104d0
add esp, 0x10
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0xffffff96
jne 0x412357
mov dword [ebp - 0x344], 0x1000
jmp 0x4123e1
cmp dword [ebp - 0x35c], 0
jge 0x41236c
mov dword [ebp - 0x344], 0x5000000
jmp 0x4123e1
cmp dword [ebp - 0x35c], 0
jle 0x4123ba
push 0
lea ecx, [ebp - 0x38c]
push ecx
mov edx, dword [ebp - 0x35c]
push edx
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp - 0x358]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0
jne 0x4123ba
mov dword [ebp - 0x344], 0x400
jmp 0x4123e1
movzx eax, byte [ebp - 0x345]
test eax, eax
je 0x4123c7
jmp 0x4123e1
cmp dword [ebp - 0x35c], 0
jne 0x4123dc
mov dword [ebp - 0x344], 0x5000000
jmp 0x4123e1
jmp 0x412302
cmp dword [ebp - 0x344], 0
jne 0x41240c
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x358]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x41241f
mov edx, dword [ebp - 0x358]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call fcn.004108f0
add esp, 4
cmp dword [ebp - 0x344], 0
je 0x412441
mov eax, dword [ebp - 0x344]
jmp 0x412443
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004279e7
mov esp, ebp
pop ebp
ret 0x10