Function at 0x411a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
mov eax, dword [0x451550]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x33c], ecx
cmp dword [ebp + 0x14], 3
je 0x411a75
cmp dword [ebp + 0x14], 2
je 0x411a75
cmp dword [ebp + 0x14], 1
je 0x411a75
mov eax, 0x10000
jmp 0x412183
cmp dword [ebp + 0x14], 3
jne 0x411bd2
mov eax, dword [ebp - 0x33c]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x411b43
mov edx, dword [ebp - 0x33c]
cmp dword [edx + 4], 0xffffffff
je 0x411aae
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call fcn.00410630
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 0x411ad5
mov eax, 0x10000
jmp 0x412183
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x411af6
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call fcn.0040fb60
add esp, 4
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x411b19
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
push eax
call fcn.0040fbe0
add esp, 4
jmp 0x411af6
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.0040ff30
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.00410210
add esp, 0x10
mov dword [ebp - 0x36c], eax
cmp dword [ebp - 0x36c], 0
jg 0x411b90
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call fcn.00410630
add esp, 4
mov edx, dword [ebp - 0x33c]
mov dword [edx + 4], 0xffffffff
movzx eax, byte [ebp - 0x347]
test eax, eax
je 0x411ba2
xor eax, eax
jmp 0x412183
cmp dword [ebp - 0x36c], 0
jle 0x411bb5
mov eax, 0x600
jmp 0x412183
cmp dword [ebp - 0x36c], 0xffffff96
jne 0x411bc8
mov eax, 0x1000
jmp 0x412183
mov eax, 0x5000000
jmp 0x412183
mov ecx, dword [ebp - 0x33c]
cmp dword [ecx + 4], 0xffffffff
je 0x411bef
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
push eax
call fcn.00410630
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 0x411c16
mov eax, 0x10000
jmp 0x412183
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x10]
jge 0x411c37
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
push eax
call fcn.0040fb60
add esp, 4
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp + 8]
jge 0x411c5a
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx]
push edx
call fcn.0040fbe0
add esp, 4
jmp 0x411c37
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x33c]
call fcn.00410b50
mov edx, dword [ebp - 0x230]
and edx, 0x10
je 0x411d53
cmp dword [ebp + 0x14], 1
jne 0x411c8c
xor eax, eax
jmp 0x412183
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 0x411cfc
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x34c]
movsx edx, byte [ecx + eax]
cmp edx, 0x5c
je 0x411cfc
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x34c]
movsx eax, byte [edx + ecx]
test eax, eax
je 0x411cf0
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 0x34c]
movsx eax, byte [edx + ecx]
cmp eax, 0x3a
je 0x411cfc
mov dword [ebp - 0x378], 0
jmp 0x411d06
mov dword [ebp - 0x378], 1
mov cl, byte [ebp - 0x378]
mov byte [ebp - 0x346], cl
movzx edx, byte [ebp - 0x346]
test edx, edx
je 0x411d30
mov eax, dword [ebp - 0x34c]
push eax
push 0
call fcn.004117b0
add esp, 8
jmp 0x411d4c
mov ecx, dword [ebp - 0x34c]
push ecx
mov edx, dword [ebp - 0x33c]
add edx, 0x140
push edx
call fcn.004117b0
add esp, 8
xor eax, eax
jmp 0x412183
cmp dword [ebp + 0x14], 1
jne 0x411d67
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x358], eax
jmp 0x411fd3
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 0x411dd1
mov eax, dword [ebp - 0x350]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x411db1
mov edx, dword [ebp - 0x350]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x411dc0
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 0x411d88
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 0x411df5
mov eax, dword [ebp - 0x354]
cmp eax, dword [ebp - 0x360]
jne 0x411e77
mov ecx, 1
imul edx, ecx, 0
mov dword [ebp - 0x37c], edx
cmp dword [ebp - 0x37c], 0x104
jae 0x411e62
jmp 0x411e67
call fcn.00428258
mov eax, dword [ebp - 0x37c]
mov byte [ebp + eax - 0x108], 0
jmp 0x411eaa
mov ecx, dword [ebp - 0x354]
sub ecx, dword [ebp - 0x360]
mov dword [ebp - 0x374], ecx
cmp dword [ebp - 0x374], 0x104
jae 0x411e97
jmp 0x411e9c
call fcn.00428258
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 0x411f09
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x108]
cmp edx, 0x5c
je 0x411f09
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x108]
test edx, edx
je 0x411efd
mov eax, 1
shl eax, 0
movsx ecx, byte [ebp + eax - 0x108]
cmp ecx, 0x3a
je 0x411f09
mov dword [ebp - 0x370], 0
jmp 0x411f13
mov dword [ebp - 0x370], 1
mov dl, byte [ebp - 0x370]
mov byte [ebp - 0x348], dl
movzx eax, byte [ebp - 0x348]
test eax, eax
je 0x411f60
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.004117b0
add esp, 8
jmp 0x411fac
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.004117b0
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 0x411fe6
mov eax, 0x200
jmp 0x412183
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.0040ff30
add esp, 8
mov edx, dword [ebp - 0x33c]
cmp dword [edx + 0x13c], 0
jne 0x412038
push 0x4000
call fcn.00414633
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 0x412121
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.00410210
add esp, 0x10
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0xffffff96
jne 0x412097
mov dword [ebp - 0x344], 0x1000
jmp 0x412121
cmp dword [ebp - 0x35c], 0
jge 0x4120ac
mov dword [ebp - 0x344], 0x5000000
jmp 0x412121
cmp dword [ebp - 0x35c], 0
jle 0x4120fa
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 0x4120fa
mov dword [ebp - 0x344], 0x400
jmp 0x412121
movzx eax, byte [ebp - 0x345]
test eax, eax
je 0x412107
jmp 0x412121
cmp dword [ebp - 0x35c], 0
jne 0x41211c
mov dword [ebp - 0x344], 0x5000000
jmp 0x412121
jmp 0x412042
cmp dword [ebp - 0x344], 0
jne 0x41214c
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 0x41215f
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.00410630
add esp, 4
cmp dword [ebp - 0x344], 0
je 0x412181
mov eax, dword [ebp - 0x344]
jmp 0x412183
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426ce7
mov esp, ebp
pop ebp
ret 0x10