Function at 0x42fbc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e158
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4995b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x40], 0
je 0x42fc02
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x46]
test edx, edx
jne 0x42fc0e
mov al, 1
jmp 0x42fe5d
mov dword [ebp - 0x84], 8
push 0xffff
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov word [ebp - 0x3a], ax
mov ecx, 0xffff
mov word [ebp - 0x4a], cx
movzx edx, word [ebp - 0x4a]
movzx eax, word [ebp - 0x3a]
cmp edx, eax
jne 0x42fc4c
mov dword [ebp - 0x54], 1
jmp 0x42fc53
mov dword [ebp - 0x54], 0
movzx ecx, byte [ebp - 0x54]
test ecx, ecx
je 0x42fc62
xor al, al
jmp 0x42fe5d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.00408f20
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0041dcb0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
jb 0x42fca6
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
jmp 0x42fcac
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x68], ecx
cmp dword [ebp - 0x14], 0x10
jb 0x42fcd5
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
jmp 0x42fcdb
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x40]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x70]
add ecx, dword [ebp - 0x68]
push ecx
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x48
push ecx
mov ecx, dword [ebp - 0x58]
mov edx, dword [edx + 0x20]
call edx
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x42fd31
cmp dword [ebp - 0x48], 1
je 0x42fd38
cmp dword [ebp - 0x48], 3
je 0x42fe0d
jmp 0x42fe29
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x46], 0
cmp dword [ebp - 0x14], 0x10
jb 0x42fd4f
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x38], edx
jmp 0x42fd55
lea eax, [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x6c]
mov dword [ebp - 0x34], eax
je 0x42fdd2
cmp dword [ebp - 0x14], 0x10
jb 0x42fd83
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x40], edx
jmp 0x42fd89
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
mov eax, dword [ebp - 0x64]
push eax
call fcn.00458938
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x42fdd2
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408f20
mov al, byte [ebp - 0x30]
jmp 0x42fe5d
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x46]
test edx, edx
jne 0x42fdf9
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408f20
mov al, byte [ebp - 0x2e]
jmp 0x42fe5d
cmp dword [ebp - 0x34], 0
jne 0x42fe0b
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00409f20
jmp 0x42fe45
mov byte [ebp - 0x2d], 1
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408f20
mov al, byte [ebp - 0x2d]
jmp 0x42fe5d
mov byte [ebp - 0x2f], 0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408f20
mov al, byte [ebp - 0x2f]
jmp 0x42fe5d
jmp 0x42fc8f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458fb5
mov esp, ebp
pop ebp
ret