Function at 0x419eb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x694
mov eax, dword [0x4ebfe0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x68c], ecx
cmp dword [ebp + 0x14], 3
je 0x419ee5
cmp dword [ebp + 0x14], 2
je 0x419ee5
cmp dword [ebp + 0x14], 1
je 0x419ee5
mov eax, 0x10000
jmp 0x41a55c
cmp dword [ebp + 0x14], 3
jne 0x41a042
mov eax, dword [ebp - 0x68c]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x419fb3
mov edx, dword [ebp - 0x68c]
cmp dword [edx + 4], 0xffffffff
je 0x419f1e
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax]
push ecx
call fcn.00418d80
add esp, 4
mov edx, dword [ebp - 0x68c]
mov dword [edx + 4], 0xffffffff
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 4]
jl 0x419f45
mov eax, 0x10000
jmp 0x41a55c
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x10]
jge 0x419f66
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax]
push ecx
call fcn.004181f0
add esp, 4
mov edx, dword [ebp - 0x68c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jge 0x419f89
mov edx, dword [ebp - 0x68c]
mov eax, dword [edx]
push eax
call fcn.00418260
add esp, 4
jmp 0x419f66
mov ecx, dword [ebp - 0x68c]
mov edx, dword [ecx + 0x23c]
push edx
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax]
push ecx
call fcn.004186e0
add esp, 8
mov edx, dword [ebp - 0x68c]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
lea ecx, [ebp - 0x451]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x68c]
mov edx, dword [ecx]
push edx
call fcn.00418970
add esp, 0x10
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
jg 0x41a000
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax]
push ecx
call fcn.00418d80
add esp, 4
mov edx, dword [ebp - 0x68c]
mov dword [edx + 4], 0xffffffff
movzx eax, byte [ebp - 0x451]
test eax, eax
je 0x41a012
xor eax, eax
jmp 0x41a55c
cmp dword [ebp - 0x450], 0
jle 0x41a025
mov eax, 0x600
jmp 0x41a55c
cmp dword [ebp - 0x450], 0xffffff96
jne 0x41a038
mov eax, 0x1000
jmp 0x41a55c
mov eax, 0x5000000
jmp 0x41a55c
mov ecx, dword [ebp - 0x68c]
cmp dword [ecx + 4], 0xffffffff
je 0x41a05f
mov edx, dword [ebp - 0x68c]
mov eax, dword [edx]
push eax
call fcn.00418d80
add esp, 4
mov ecx, dword [ebp - 0x68c]
mov dword [ecx + 4], 0xffffffff
mov edx, dword [ebp - 0x68c]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jl 0x41a086
mov eax, 0x10000
jmp 0x41a55c
mov edx, dword [ebp - 0x68c]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x10]
jge 0x41a0a7
mov edx, dword [ebp - 0x68c]
mov eax, dword [edx]
push eax
call fcn.004181f0
add esp, 4
mov ecx, dword [ebp - 0x68c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp + 8]
jge 0x41a0ca
mov ecx, dword [ebp - 0x68c]
mov edx, dword [ecx]
push edx
call fcn.00418260
add esp, 4
jmp 0x41a0a7
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x68c]
call fcn.00419170
mov edx, dword [ebp - 0x34]
and edx, 0x10
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 5], dl
movzx eax, byte [ebp - 5]
test eax, eax
je 0x41a1ac
cmp dword [ebp + 0x14], 1
jne 0x41a108
xor eax, eax
jmp 0x41a55c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x458], ecx
mov edx, dword [ebp - 0x458]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x41a155
mov ecx, dword [ebp - 0x458]
movzx edx, word [ecx]
cmp edx, 0x5c
je 0x41a155
mov eax, dword [ebp - 0x458]
movzx ecx, word [eax]
test ecx, ecx
je 0x41a149
mov edx, dword [ebp - 0x458]
movzx eax, word [edx + 2]
cmp eax, 0x3a
je 0x41a155
mov dword [ebp - 0x690], 0
jmp 0x41a15f
mov dword [ebp - 0x690], 1
mov cl, byte [ebp - 0x690]
mov byte [ebp - 0x452], cl
movzx edx, byte [ebp - 0x452]
test edx, edx
je 0x41a189
mov eax, dword [ebp - 0x458]
push eax
push 0
call fcn.00419c00
add esp, 8
jmp 0x41a1a5
mov ecx, dword [ebp - 0x458]
push ecx
mov edx, dword [ebp - 0x68c]
add edx, 0x244
push edx
call fcn.00419c00
add esp, 8
xor eax, eax
jmp 0x41a55c
xor eax, eax
mov word [ebp - 0x448], ax
push 0x206
push 0
lea ecx, [ebp - 0x446]
push ecx
call fcn.004a8470
add esp, 0xc
xor edx, edx
mov word [ebp - 0x448], dx
cmp dword [ebp + 0x14], 1
jne 0x41a1e5
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
jmp 0x41a3b7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x460], ecx
mov edx, dword [ebp - 0x460]
mov dword [ebp - 0x464], edx
mov eax, dword [ebp - 0x464]
mov dword [ebp - 0x674], eax
mov ecx, dword [ebp - 0x674]
movzx edx, word [ecx]
test edx, edx
je 0x41a24f
mov eax, dword [ebp - 0x674]
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x41a22f
mov edx, dword [ebp - 0x674]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x41a23e
mov ecx, dword [ebp - 0x674]
add ecx, 2
mov dword [ebp - 0x464], ecx
mov edx, dword [ebp - 0x674]
add edx, 2
mov dword [ebp - 0x674], edx
jmp 0x41a206
xor eax, eax
mov word [ebp - 0x670], ax
push 0x206
push 0
lea ecx, [ebp - 0x66e]
push ecx
call fcn.004a8470
add esp, 0xc
push 0x104
mov edx, dword [ebp - 0x460]
push edx
lea eax, [ebp - 0x670]
push eax
call fcn.004a5357
add esp, 0xc
mov ecx, dword [ebp - 0x464]
cmp ecx, dword [ebp - 0x460]
jne 0x41a2a2
xor edx, edx
mov word [ebp - 0x670], dx
jmp 0x41a2ba
mov eax, dword [ebp - 0x464]
sub eax, dword [ebp - 0x460]
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x670], cx
movzx edx, word [ebp - 0x670]
cmp edx, 0x2f
je 0x41a2f5
movzx eax, word [ebp - 0x670]
cmp eax, 0x5c
je 0x41a2f5
movzx ecx, word [ebp - 0x670]
test ecx, ecx
je 0x41a2e9
movzx edx, word [ebp - 0x66e]
cmp edx, 0x3a
je 0x41a2f5
mov dword [ebp - 0x694], 0
jmp 0x41a2ff
mov dword [ebp - 0x694], 1
mov al, byte [ebp - 0x694]
mov byte [ebp - 0x459], al
movzx ecx, byte [ebp - 0x459]
test ecx, ecx
je 0x41a34b
mov edx, dword [ebp - 0x464]
push edx
lea eax, [ebp - 0x670]
push eax
push str._s_s
lea ecx, [ebp - 0x448]
push ecx
call fcn.00410880
add esp, 0x10
lea edx, [ebp - 0x670]
push edx
push 0
call fcn.00419c00
add esp, 8
jmp 0x41a396
mov eax, dword [ebp - 0x464]
push eax
lea ecx, [ebp - 0x670]
push ecx
mov edx, dword [ebp - 0x68c]
add edx, 0x244
push edx
push str._s_s_s
lea eax, [ebp - 0x448]
push eax
call fcn.00410880
add esp, 0x14
lea ecx, [ebp - 0x670]
push ecx
mov edx, dword [ebp - 0x68c]
add edx, 0x244
push edx
call fcn.00419c00
add esp, 8
push 0
mov eax, dword [ebp - 0x34]
push eax
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x41a3c7
mov eax, 0x200
jmp 0x41a55c
mov dword [ebp - 0x44c], 0
cmp dword [ebp - 0x14], 0
jle 0x41a51a
mov edx, dword [ebp - 0x68c]
mov eax, dword [edx + 0x23c]
push eax
mov ecx, dword [ebp - 0x68c]
mov edx, dword [ecx]
push edx
call fcn.004186e0
add esp, 8
mov eax, dword [ebp - 0x68c]
cmp dword [eax + 0x240], 0
jne 0x41a42d
push 0x4000
call fcn.004a508b
add esp, 4
mov dword [ebp - 0x688], eax
mov ecx, dword [ebp - 0x68c]
mov edx, dword [ebp - 0x688]
mov dword [ecx + 0x240], edx
cmp dword [ebp - 0x44c], 0
jne 0x41a509
lea eax, [ebp - 0x679]
push eax
push 0x4000
mov ecx, dword [ebp - 0x68c]
mov edx, dword [ecx + 0x240]
push edx
mov eax, dword [ebp - 0x68c]
mov ecx, dword [eax]
push ecx
call fcn.00418970
add esp, 0x10
mov dword [ebp - 0x678], eax
cmp dword [ebp - 0x678], 0xffffff96
jne 0x41a482
mov dword [ebp - 0x44c], 0x1000
jmp 0x41a509
cmp dword [ebp - 0x678], 0
jge 0x41a497
mov dword [ebp - 0x44c], 0x5000000
jmp 0x41a509
cmp dword [ebp - 0x678], 0
jle 0x41a4e2
push 0
lea edx, [ebp - 0x684]
push edx
mov eax, dword [ebp - 0x678]
push eax
mov ecx, dword [ebp - 0x68c]
mov edx, dword [ecx + 0x240]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x680], eax
cmp dword [ebp - 0x680], 0
jne 0x41a4e2
mov dword [ebp - 0x44c], 0x400
jmp 0x41a509
movzx ecx, byte [ebp - 0x679]
test ecx, ecx
je 0x41a4ef
jmp 0x41a509
cmp dword [ebp - 0x678], 0
jne 0x41a504
mov dword [ebp - 0x44c], 0x5000000
jmp 0x41a509
jmp 0x41a42d
mov edx, dword [ebp - 0x68c]
mov eax, dword [edx]
push eax
call fcn.00418d80
add esp, 4
cmp dword [ebp - 0x44c], 0
jne 0x41a539
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x41a549
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x44c], 0
je 0x41a55a
mov eax, dword [ebp - 0x44c]
jmp 0x41a55c
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004a4ea6
mov esp, ebp
pop ebp
ret 0x10