Function at 0x41bf50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
mov eax, dword [0x44983c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x344], ecx
cmp dword [ebp + 0x14], 3
je 0x41bf85
cmp dword [ebp + 0x14], 2
je 0x41bf85
cmp dword [ebp + 0x14], 1
je 0x41bf85
mov eax, 0x10000
jmp 0x41c642
cmp dword [ebp + 0x14], 3
jne 0x41c0e2
mov eax, dword [ebp - 0x344]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x41c053
mov edx, dword [ebp - 0x344]
cmp dword [edx + 4], 0xffffffff
je 0x41bfbe
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax]
push ecx
call fcn.0041ad20
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 0x41bfe5
mov eax, 0x10000
jmp 0x41c642
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x41c006
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax]
push ecx
call fcn.0041a210
add esp, 4
mov edx, dword [ebp - 0x344]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x41c029
mov edx, dword [ebp - 0x344]
mov eax, dword [edx]
push eax
call fcn.0041a290
add esp, 4
jmp 0x41c006
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.0041a600
add esp, 8
mov edx, dword [ebp - 0x344]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
lea ecx, [ebp - 0x20e]
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.0041a900
add esp, 0x10
mov dword [ebp - 0x368], eax
cmp dword [ebp - 0x368], 0
jg 0x41c0a0
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax]
push ecx
call fcn.0041ad20
add esp, 4
mov edx, dword [ebp - 0x344]
mov dword [edx + 4], 0xffffffff
movzx eax, byte [ebp - 0x20e]
test eax, eax
je 0x41c0b2
xor eax, eax
jmp 0x41c642
cmp dword [ebp - 0x368], 0
jle 0x41c0c5
mov eax, 0x600
jmp 0x41c642
cmp dword [ebp - 0x368], 0xffffff96
jne 0x41c0d8
mov eax, 0x1000
jmp 0x41c642
mov eax, 0x5000000
jmp 0x41c642
mov ecx, dword [ebp - 0x344]
cmp dword [ecx + 4], 0xffffffff
je 0x41c0ff
mov edx, dword [ebp - 0x344]
mov eax, dword [edx]
push eax
call fcn.0041ad20
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 0x41c126
mov eax, 0x10000
jmp 0x41c642
mov edx, dword [ebp - 0x344]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x10]
jge 0x41c147
mov edx, dword [ebp - 0x344]
mov eax, dword [edx]
push eax
call fcn.0041a210
add esp, 4
mov ecx, dword [ebp - 0x344]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp + 8]
jge 0x41c16a
mov ecx, dword [ebp - 0x344]
mov edx, dword [ecx]
push edx
call fcn.0041a290
add esp, 4
jmp 0x41c147
lea eax, [ebp - 0x340]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x344]
call fcn.0041b180
mov edx, dword [ebp - 0x238]
and edx, 0x10
je 0x41c263
cmp dword [ebp + 0x14], 1
jne 0x41c19c
xor eax, eax
jmp 0x41c642
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x358], eax
mov ecx, 1
imul ecx, ecx, 0
mov edx, dword [ebp - 0x358]
movsx eax, byte [edx + ecx]
cmp eax, 0x2f
je 0x41c20c
mov ecx, 1
imul ecx, ecx, 0
mov edx, dword [ebp - 0x358]
movsx eax, byte [edx + ecx]
cmp eax, 0x5c
je 0x41c20c
mov ecx, 1
imul ecx, ecx, 0
mov edx, dword [ebp - 0x358]
movsx eax, byte [edx + ecx]
test eax, eax
je 0x41c200
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 0x358]
movsx eax, byte [edx + ecx]
cmp eax, 0x3a
je 0x41c20c
mov dword [ebp - 0x370], 0
jmp 0x41c216
mov dword [ebp - 0x370], 1
mov cl, byte [ebp - 0x370]
mov byte [ebp - 0x34a], cl
movzx edx, byte [ebp - 0x34a]
test edx, edx
je 0x41c240
mov eax, dword [ebp - 0x358]
push eax
push 0
call fcn.0041bda0
add esp, 8
jmp 0x41c25c
mov ecx, dword [ebp - 0x358]
push ecx
mov edx, dword [ebp - 0x344]
add edx, 0x140
push edx
call fcn.0041bda0
add esp, 8
xor eax, eax
jmp 0x41c642
cmp dword [ebp + 0x14], 1
jne 0x41c277
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x360], eax
jmp 0x41c492
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x364], ecx
mov edx, dword [ebp - 0x364]
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 0x41c2e1
mov eax, dword [ebp - 0x350]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x41c2c1
mov edx, dword [ebp - 0x350]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x41c2d0
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 0x41c298
mov eax, dword [ebp - 0x364]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.0041ca30
add esp, 8
mov edx, dword [ebp - 0x354]
cmp edx, dword [ebp - 0x364]
jne 0x41c336
mov eax, 1
imul eax, eax, 0
mov dword [ebp - 0x378], eax
cmp dword [ebp - 0x378], 0x104
jae 0x41c321
jmp 0x41c326
call fcn.00423813
mov ecx, dword [ebp - 0x378]
mov byte [ebp + ecx - 0x108], 0
jmp 0x41c369
mov edx, dword [ebp - 0x354]
sub edx, dword [ebp - 0x364]
mov dword [ebp - 0x374], edx
cmp dword [ebp - 0x374], 0x104
jae 0x41c356
jmp 0x41c35b
call fcn.00423813
mov eax, dword [ebp - 0x374]
mov byte [ebp + eax - 0x108], 0
mov ecx, 1
imul ecx, ecx, 0
movsx edx, byte [ebp + ecx - 0x108]
cmp edx, 0x2f
je 0x41c3c8
mov eax, 1
imul eax, eax, 0
movsx ecx, byte [ebp + eax - 0x108]
cmp ecx, 0x5c
je 0x41c3c8
mov edx, 1
imul edx, edx, 0
movsx eax, byte [ebp + edx - 0x108]
test eax, eax
je 0x41c3bc
mov ecx, 1
shl ecx, 0
movsx edx, byte [ebp + ecx - 0x108]
cmp edx, 0x3a
je 0x41c3c8
mov dword [ebp - 0x36c], 0
jmp 0x41c3d2
mov dword [ebp - 0x36c], 1
mov al, byte [ebp - 0x36c]
mov byte [ebp - 0x349], al
movzx ecx, byte [ebp - 0x349]
test ecx, ecx
je 0x41c41f
mov edx, dword [ebp - 0x354]
push edx
lea eax, [ebp - 0x108]
push eax
push str._s_s
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x108]
push edx
push 0
call fcn.0041bda0
add esp, 8
jmp 0x41c46b
mov eax, dword [ebp - 0x354]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x344]
add edx, 0x140
push edx
push str._s_s_s
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x344]
add edx, 0x140
push edx
call fcn.0041bda0
add esp, 8
push 0
mov eax, dword [ebp - 0x238]
push eax
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x360], eax
cmp dword [ebp - 0x360], 0xffffffff
jne 0x41c4a5
mov eax, 0x200
jmp 0x41c642
mov edx, dword [ebp - 0x344]
mov eax, dword [edx + 0x138]
push eax
mov ecx, dword [ebp - 0x344]
mov edx, dword [ecx]
push edx
call fcn.0041a600
add esp, 8
mov eax, dword [ebp - 0x344]
cmp dword [eax + 0x13c], 0
jne 0x41c4f7
push 0x4000
call fcn.004232d8
add esp, 4
mov dword [ebp - 0x380], eax
mov ecx, dword [ebp - 0x344]
mov edx, dword [ebp - 0x380]
mov dword [ecx + 0x13c], edx
mov dword [ebp - 0x348], 0
cmp dword [ebp - 0x348], 0
jne 0x41c5e0
lea eax, [ebp - 0x20d]
push eax
push 0x4000
mov ecx, dword [ebp - 0x344]
mov edx, dword [ecx + 0x13c]
push edx
mov eax, dword [ebp - 0x344]
mov ecx, dword [eax]
push ecx
call fcn.0041a900
add esp, 0x10
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0xffffff96
jne 0x41c556
mov dword [ebp - 0x348], 0x1000
jmp 0x41c5e0
cmp dword [ebp - 0x35c], 0
jge 0x41c56b
mov dword [ebp - 0x348], 0x5000000
jmp 0x41c5e0
cmp dword [ebp - 0x35c], 0
jle 0x41c5b9
push 0
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp - 0x35c]
push eax
mov ecx, dword [ebp - 0x344]
mov edx, dword [ecx + 0x13c]
push edx
mov eax, dword [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x41c5b9
mov dword [ebp - 0x348], 0x400
jmp 0x41c5e0
movzx ecx, byte [ebp - 0x20d]
test ecx, ecx
je 0x41c5c6
jmp 0x41c5e0
cmp dword [ebp - 0x35c], 0
jne 0x41c5db
mov dword [ebp - 0x348], 0x5000000
jmp 0x41c5e0
jmp 0x41c501
cmp dword [ebp - 0x348], 0
jne 0x41c60b
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x41c61e
mov eax, dword [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x344]
mov edx, dword [ecx]
push edx
call fcn.0041ad20
add esp, 4
cmp dword [ebp - 0x348], 0
je 0x41c640
mov eax, dword [ebp - 0x348]
jmp 0x41c642
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422b72
mov esp, ebp
pop ebp
ret 0x10