Function at 0x42c240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0608
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x629af0]
xor eax, ebp
mov dword [ebp - 0x20], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
call fcn.004015d0
mov word [ebp - 0x42], ax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x42]
push ecx
call fcn.00429bf0
add esp, 8
movzx edx, al
test edx, edx
je 0x42c2a2
lea eax, [ebp + 8]
push eax
call fcn.00429c10
add esp, 4
jmp 0x42c553
mov ecx, dword [ebp - 0x74]
call fcn.0042d250
test eax, eax
je 0x42c2ec
mov ecx, dword [ebp - 0x74]
call fcn.0042d250
mov esi, eax
mov ecx, dword [ebp - 0x74]
call fcn.0042d310
cmp esi, eax
jae 0x42c2ec
lea ecx, [ebp + 8]
push ecx
call fcn.004015c0
add esp, 4
mov si, ax
mov ecx, dword [ebp - 0x74]
call fcn.0040b420
mov word [eax], si
mov ax, word [ebp + 8]
jmp 0x42c553
mov edx, dword [ebp - 0x74]
cmp dword [edx + 0x4c], 0
jne 0x42c304
call fcn.004015d0
jmp 0x42c553
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0x3c], 0
jne 0x42c354
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.004015c0
add esp, 4
movzx ecx, ax
push ecx
call fcn.0042abe0
add esp, 8
movzx edx, al
test edx, edx
je 0x42c33d
mov ax, word [ebp + 8]
mov word [ebp - 0x76], ax
jmp 0x42c346
call fcn.004015d0
mov word [ebp - 0x76], ax
mov ax, word [ebp - 0x76]
jmp 0x42c553
mov dword [ebp - 0x10], 8
lea ecx, [ebp + 8]
push ecx
call fcn.004015c0
add esp, 4
mov word [ebp - 0x18], ax
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.0042d050
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0041ad30
mov ecx, eax
call fcn.0042dd30
mov esi, eax
lea ecx, [ebp - 0x3c]
call fcn.00409a10
add esi, eax
push esi
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0041ad30
mov ecx, eax
call fcn.0042dd30
push eax
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x16]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x74]
add edx, 0x44
push edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x3c]
call fcn.0042a2a0
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jl 0x42c521
cmp dword [ebp - 0x7c], 1
jle 0x42c3f6
cmp dword [ebp - 0x7c], 3
je 0x42c4d6
jmp 0x42c521
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0041ad30
mov ecx, eax
call fcn.0042dd30
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0x40], edx
je 0x42c462
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0041ad30
mov ecx, eax
call fcn.0042dd30
push eax
call fcn.0057ca18
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x42c462
call fcn.004015d0
mov word [ebp - 0x66], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00409660
mov ax, word [ebp - 0x66]
jmp 0x42c553
mov ecx, dword [ebp - 0x74]
mov byte [ecx + 0x42], 1
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
cmp edx, eax
je 0x42c493
mov cx, word [ebp + 8]
mov word [ebp - 0x68], cx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00409660
mov ax, word [ebp - 0x68]
jmp 0x42c553
cmp dword [ebp - 0x40], 0
jbe 0x42c49b
jmp 0x42c4d4
lea ecx, [ebp - 0x3c]
call fcn.00409a10
cmp eax, 0x20
jae 0x42c4b6
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.0040af80
jmp 0x42c4d4
call fcn.004015d0
mov word [ebp - 0x6a], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00409660
mov ax, word [ebp - 0x6a]
jmp 0x42c553
jmp 0x42c53f
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x4c]
push eax
movzx ecx, word [ebp - 0x18]
push ecx
call fcn.0042abe0
add esp, 8
movzx edx, al
test edx, edx
je 0x42c4fb
mov ax, word [ebp + 8]
mov word [ebp - 0x7e], ax
jmp 0x42c504
call fcn.004015d0
mov word [ebp - 0x7e], ax
mov cx, word [ebp - 0x7e]
mov word [ebp - 0x6c], cx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00409660
mov ax, word [ebp - 0x6c]
jmp 0x42c553
call fcn.004015d0
mov word [ebp - 0x6e], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00409660
mov ax, word [ebp - 0x6e]
jmp 0x42c553
jmp 0x42c37e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0057976c
mov esp, ebp
pop ebp
ret 4