Function at 0x419120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433718
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4447d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00401c00
mov ebx, eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], ebx
call fcn.00418c60
add esp, 8
test al, al
je 0x41917c
lea eax, [ebp + 8]
push eax
call fcn.00419050
add esp, 4
jmp 0x41936b
mov ecx, edi
call fcn.004194e0
test eax, eax
je 0x4191ba
mov ecx, edi
call fcn.00418c50
mov ecx, edi
mov esi, eax
call fcn.004194e0
cmp eax, esi
jae 0x4191ba
mov ecx, edi
call fcn.004188b0
mov esi, eax
lea eax, [ebp + 8]
push eax
call fcn.00419d30
mov byte [esi], al
mov eax, dword [ebp + 8]
add esp, 4
jmp 0x41936b
cmp dword [edi + 0x50], 0
je 0x419369
mov ecx, edi
call fcn.004188c0
cmp dword [edi + 0x40], 0
lea eax, [ebp + 8]
jne 0x4191f7
push dword [edi + 0x50]
push eax
call fcn.00419d30
movzx eax, al
add esp, 4
push eax
call fcn.00415b60
add esp, 8
test al, al
cmovne ebx, dword [ebp + 8]
jmp 0x419369
push eax
call fcn.00419d30
add esp, 4
lea ecx, [ebp - 0x2c]
push 0
push 8
mov byte [ebp - 0x14], al
call fcn.00405760
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0040e340
mov ecx, eax
call fcn.004068c0
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00401d50
add esi, eax
push esi
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040e340
mov ecx, eax
call fcn.004068c0
mov ecx, dword [edi + 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x13]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x48]
push eax
call fcn.00419110
test eax, eax
js 0x419361
mov edi, edi
cmp eax, 1
jg 0x419348
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040e340
mov ecx, eax
call fcn.004068c0
mov esi, dword [ebp - 0x34]
sub esi, eax
je 0x4192bd
push dword [edi + 0x50]
lea eax, [ebp - 0x40]
push esi
push 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040e340
mov ecx, eax
call fcn.004068c0
push eax
call fcn.0041daab
add esp, 0x10
cmp esi, eax
jne 0x419361
lea eax, [ebp - 0x14]
mov byte [edi + 0x45], 1
cmp dword [ebp - 0x30], eax
jne 0x419343
test esi, esi
jne 0x4192e9
lea ecx, [ebp - 0x2c]
call fcn.00401d50
cmp eax, 0x20
jae 0x419361
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00401590
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040e340
mov ecx, eax
call fcn.004068c0
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00401d50
add esi, eax
push esi
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040e340
mov ecx, eax
call fcn.004068c0
mov ecx, dword [edi + 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x13]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x48]
push eax
call fcn.00419110
test eax, eax
jns 0x419270
jmp 0x419361
mov ebx, dword [ebp + 8]
jmp 0x419361
cmp eax, 3
jne 0x419361
push dword [edi + 0x50]
push dword [ebp - 0x14]
call fcn.00415b60
add esp, 8
test al, al
cmovne ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00401190
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bcf4
mov esp, ebp
pop ebp
ret 4