Function at 0x419d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0018
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4f7458]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf8], ecx
mov eax, dword [ebp - 0xf8]
cmp dword [eax + 0x3c], 0
je 0x419d6b
mov ecx, dword [ebp - 0xf8]
movzx edx, byte [ecx + 0x42]
test edx, edx
jne 0x419d77
mov al, 1
jmp 0x41a00d
mov dword [ebp - 0x10], 8
push 0xffff
mov eax, dword [ebp - 0xf8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xf8]
mov eax, dword [edx + 4]
call eax
mov word [ebp - 0x3a], ax
mov ecx, 0xffff
mov word [ebp - 0x3c], cx
movzx edx, word [ebp - 0x3a]
movzx eax, word [ebp - 0x3c]
xor ecx, ecx
cmp eax, edx
sete cl
movzx edx, cl
test edx, edx
je 0x419dc0
xor al, al
jmp 0x41a00d
lea eax, [ebp - 0x69]
mov dword [ebp - 0x68], eax
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.004101f0
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0041a980
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x10
jb 0x419df3
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x70], ecx
jmp 0x419df9
lea edx, [ebp - 0x30]
mov dword [ebp - 0x70], edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x44]
call fcn.0041c170
lea ecx, [ebp - 0x44]
call fcn.0041bbb0
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x78], edx
cmp dword [ebp - 0x1c], 0x10
jb 0x419e28
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x7c], eax
jmp 0x419e2e
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x7c], ecx
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041c170
lea ecx, [ebp - 0x4c]
call fcn.0041bbb0
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x74]
add ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0xf8]
add eax, 0x44
push eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x84]
mov eax, dword [edx + 0x18]
call eax
mov dword [ebp - 0xfc], eax
cmp dword [ebp - 0xfc], 0
je 0x419eae
cmp dword [ebp - 0xfc], 1
je 0x419eb8
cmp dword [ebp - 0xfc], 3
je 0x419fbd
jmp 0x419fd9
mov ecx, dword [ebp - 0xf8]
mov byte [ecx + 0x42], 0
cmp dword [ebp - 0x1c], 0x10
jb 0x419ec9
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x88], edx
jmp 0x419ed2
lea eax, [ebp - 0x30]
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x88]
push edx
lea ecx, [ebp - 0x54]
call fcn.0041c170
lea ecx, [ebp - 0x54]
call fcn.0041bbb0
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x8c]
mov dword [ebp - 0x38], eax
je 0x419f7f
cmp dword [ebp - 0x1c], 0x10
jb 0x419f12
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x90], ecx
jmp 0x419f1b
lea edx, [ebp - 0x30]
mov dword [ebp - 0x90], edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.0041c170
lea ecx, [ebp - 0x5c]
call fcn.0041bbb0
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0xf8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
push 1
mov edx, dword [ebp - 0x94]
push edx
call fcn.0048d0b7
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x419f7f
mov byte [ebp - 0x5d], 0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004101f0
mov al, byte [ebp - 0x5d]
jmp 0x41a00d
mov eax, dword [ebp - 0xf8]
movzx ecx, byte [eax + 0x42]
test ecx, ecx
jne 0x419fa9
mov byte [ebp - 0x5e], 1
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004101f0
mov al, byte [ebp - 0x5e]
jmp 0x41a00d
cmp dword [ebp - 0x38], 0
jne 0x419fbb
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00418be0
jmp 0x419ff5
mov byte [ebp - 0x5f], 1
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004101f0
mov al, byte [ebp - 0x5f]
jmp 0x41a00d
mov byte [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004101f0
mov al, byte [ebp - 0x60]
jmp 0x41a00d
jmp 0x419de5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0048abfc
mov esp, ebp
pop ebp
ret