Function at 0x4122d0
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 0x412305
cmp dword [ebp + 0x14], 2
je 0x412305
cmp dword [ebp + 0x14], 1
je 0x412305
mov eax, 0x10000
jmp 0x412a13
cmp dword [ebp + 0x14], 3
jne 0x412462
mov eax, dword [ebp - 0x33c]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x4123d3
mov edx, dword [ebp - 0x33c]
cmp dword [edx + 4], 0xffffffff
je 0x41233e
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call fcn.00410ec0
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 0x412365
mov eax, 0x10000
jmp 0x412a13
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x412386
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call fcn.004103f0
add esp, 4
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x4123a9
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
push eax
call fcn.00410470
add esp, 4
jmp 0x412386
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.004107c0
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.00410aa0
add esp, 0x10
mov dword [ebp - 0x36c], eax
cmp dword [ebp - 0x36c], 0
jg 0x412420
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call fcn.00410ec0
add esp, 4
mov edx, dword [ebp - 0x33c]
mov dword [edx + 4], 0xffffffff
movzx eax, byte [ebp - 0x347]
test eax, eax
je 0x412432
xor eax, eax
jmp 0x412a13
cmp dword [ebp - 0x36c], 0
jle 0x412445
mov eax, 0x600
jmp 0x412a13
cmp dword [ebp - 0x36c], 0xffffff96
jne 0x412458
mov eax, 0x1000
jmp 0x412a13
mov eax, 0x5000000
jmp 0x412a13
mov ecx, dword [ebp - 0x33c]
cmp dword [ecx + 4], 0xffffffff
je 0x41247f
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
push eax
call fcn.00410ec0
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 0x4124a6
mov eax, 0x10000
jmp 0x412a13
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x10]
jge 0x4124c7
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
push eax
call fcn.004103f0
add esp, 4
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp + 8]
jge 0x4124ea
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx]
push edx
call fcn.00410470
add esp, 4
jmp 0x4124c7
lea eax, [ebp - 0x338]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x33c]
call fcn.004113e0
mov edx, dword [ebp - 0x230]
and edx, 0x10
je 0x4125e3
cmp dword [ebp + 0x14], 1
jne 0x41251c
xor eax, eax
jmp 0x412a13
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 0x41258c
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x34c]
movsx edx, byte [ecx + eax]
cmp edx, 0x5c
je 0x41258c
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x34c]
movsx eax, byte [edx + ecx]
test eax, eax
je 0x412580
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 0x34c]
movsx eax, byte [edx + ecx]
cmp eax, 0x3a
je 0x41258c
mov dword [ebp - 0x378], 0
jmp 0x412596
mov dword [ebp - 0x378], 1
mov cl, byte [ebp - 0x378]
mov byte [ebp - 0x346], cl
movzx edx, byte [ebp - 0x346]
test edx, edx
je 0x4125c0
mov eax, dword [ebp - 0x34c]
push eax
push 0
call fcn.00412040
add esp, 8
jmp 0x4125dc
mov ecx, dword [ebp - 0x34c]
push ecx
mov edx, dword [ebp - 0x33c]
add edx, 0x140
push edx
call fcn.00412040
add esp, 8
xor eax, eax
jmp 0x412a13
cmp dword [ebp + 0x14], 1
jne 0x4125f7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x358], eax
jmp 0x412863
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 0x412661
mov eax, dword [ebp - 0x350]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x412641
mov edx, dword [ebp - 0x350]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x412650
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 0x412618
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 0x412685
mov eax, dword [ebp - 0x354]
cmp eax, dword [ebp - 0x360]
jne 0x412707
mov ecx, 1
imul edx, ecx, 0
mov dword [ebp - 0x37c], edx
cmp dword [ebp - 0x37c], 0x104
jae 0x4126f2
jmp 0x4126f7
call fcn.00429528
mov eax, dword [ebp - 0x37c]
mov byte [ebp + eax - 0x108], 0
jmp 0x41273a
mov ecx, dword [ebp - 0x354]
sub ecx, dword [ebp - 0x360]
mov dword [ebp - 0x374], ecx
cmp dword [ebp - 0x374], 0x104
jae 0x412727
jmp 0x41272c
call fcn.00429528
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 0x412799
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x108]
cmp edx, 0x5c
je 0x412799
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x108]
test edx, edx
je 0x41278d
mov eax, 1
shl eax, 0
movsx ecx, byte [ebp + eax - 0x108]
cmp ecx, 0x3a
je 0x412799
mov dword [ebp - 0x370], 0
jmp 0x4127a3
mov dword [ebp - 0x370], 1
mov dl, byte [ebp - 0x370]
mov byte [ebp - 0x348], dl
movzx eax, byte [ebp - 0x348]
test eax, eax
je 0x4127f0
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.00412040
add esp, 8
jmp 0x41283c
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.00412040
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 0x412876
mov eax, 0x200
jmp 0x412a13
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.004107c0
add esp, 8
mov edx, dword [ebp - 0x33c]
cmp dword [edx + 0x13c], 0
jne 0x4128c8
push 0x4000
call fcn.0041590f
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 0x4129b1
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.00410aa0
add esp, 0x10
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0xffffff96
jne 0x412927
mov dword [ebp - 0x344], 0x1000
jmp 0x4129b1
cmp dword [ebp - 0x35c], 0
jge 0x41293c
mov dword [ebp - 0x344], 0x5000000
jmp 0x4129b1
cmp dword [ebp - 0x35c], 0
jle 0x41298a
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 0x41298a
mov dword [ebp - 0x344], 0x400
jmp 0x4129b1
movzx eax, byte [ebp - 0x345]
test eax, eax
je 0x412997
jmp 0x4129b1
cmp dword [ebp - 0x35c], 0
jne 0x4129ac
mov dword [ebp - 0x344], 0x5000000
jmp 0x4129b1
jmp 0x4128d2
cmp dword [ebp - 0x344], 0
jne 0x4129dc
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 0x4129ef
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.00410ec0
add esp, 4
cmp dword [ebp - 0x344], 0
je 0x412a11
mov eax, dword [ebp - 0x344]
jmp 0x412a13
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427fb1
mov esp, ebp
pop ebp
ret 0x10