Function at 0x40c2f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c038
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x439b10]
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 dword [ebp - 0x14], ecx
call fcn.0040b9a0
mov dword [ebp - 0xa8], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xa8]
push ecx
call fcn.0040b9f0
add esp, 8
movzx edx, al
test edx, edx
je 0x40c359
lea eax, [ebp + 8]
push eax
call fcn.0040c1a0
add esp, 4
jmp 0x40c63c
mov ecx, dword [ebp - 0x14]
call fcn.0040c810
test eax, eax
je 0x40c39d
mov ecx, dword [ebp - 0x14]
call fcn.0040c810
mov esi, eax
mov ecx, dword [ebp - 0x14]
call fcn.0040b9c0
cmp esi, eax
jae 0x40c39d
lea eax, [ebp + 8]
push eax
call fcn.0040d3b0
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x14]
call fcn.0040aa90
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x40c63c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x50], 0
jne 0x40c3b0
call fcn.0040b9a0
jmp 0x40c63c
mov ecx, dword [ebp - 0x14]
call fcn.0040aae0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x40], 0
jne 0x40c40d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x50]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.0040d3b0
add esp, 4
movzx eax, al
push eax
call fcn.00406e20
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40c3f2
mov edx, dword [ebp + 8]
mov dword [ebp - 0xac], edx
jmp 0x40c3fd
call fcn.0040b9a0
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
jmp 0x40c63c
mov dword [ebp - 0x18], 8
lea eax, [ebp + 8]
push eax
call fcn.0040d3b0
add esp, 4
mov byte [ebp - 0x1a], al
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.004074d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004054c0
mov ecx, eax
call fcn.004023d0
mov esi, eax
lea ecx, [ebp - 0x3c]
call fcn.00406760
add esi, eax
push esi
lea edx, [ebp - 0xa0]
push edx
lea ecx, [ebp - 0x3c]
call fcn.004054c0
mov ecx, eax
call fcn.004023d0
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x19]
push ecx
lea edx, [ebp - 0x1a]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x48
push eax
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x40]
call fcn.0040c2b0
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jl 0x40c606
cmp dword [ebp - 0xac], 1
jle 0x40c4c0
cmp dword [ebp - 0xac], 3
je 0x40c5b2
jmp 0x40c606
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004054c0
mov ecx, eax
call fcn.004023d0
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov dword [ebp - 0x40], ecx
je 0x40c536
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004054c0
mov ecx, eax
call fcn.004023d0
push eax
call fcn.00415a2b
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x40c536
call fcn.0040b9a0
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402160
mov eax, dword [ebp - 0x94]
jmp 0x40c63c
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x45], 1
lea eax, [ebp - 0x1a]
cmp dword [ebp - 0x20], eax
je 0x40c568
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402160
mov eax, dword [ebp - 0x90]
jmp 0x40c63c
cmp dword [ebp - 0x40], 0
jbe 0x40c570
jmp 0x40c5b0
lea ecx, [ebp - 0x3c]
call fcn.00406760
cmp eax, 0x20
jae 0x40c58b
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.0040ae20
jmp 0x40c5b0
call fcn.0040b9a0
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402160
mov eax, dword [ebp - 0x8c]
jmp 0x40c63c
jmp 0x40c628
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x50]
push ecx
movzx edx, byte [ebp - 0x1a]
push edx
call fcn.00406e20
add esp, 8
movzx eax, al
test eax, eax
je 0x40c5d8
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xac], ecx
jmp 0x40c5e3
call fcn.0040b9a0
mov dword [ebp - 0xac], eax
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x88], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402160
mov eax, dword [ebp - 0x88]
jmp 0x40c63c
call fcn.0040b9a0
mov dword [ebp - 0x84], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402160
mov eax, dword [ebp - 0x84]
jmp 0x40c63c
jmp 0x40c436
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.00412da9
mov esp, ebp
pop ebp
ret 4