Function at 0x40bdf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b438
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x438b10]
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.0040b5e0
mov dword [ebp - 0xa8], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xa8]
push ecx
call fcn.0040b630
add esp, 8
movzx edx, al
test edx, edx
je 0x40be59
lea eax, [ebp + 8]
push eax
call fcn.0040bca0
add esp, 4
jmp 0x40c13c
mov ecx, dword [ebp - 0x14]
call fcn.0040c310
test eax, eax
je 0x40be9d
mov ecx, dword [ebp - 0x14]
call fcn.0040c310
mov esi, eax
mov ecx, dword [ebp - 0x14]
call fcn.0040b600
cmp esi, eax
jae 0x40be9d
lea eax, [ebp + 8]
push eax
call fcn.0040ceb0
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x14]
call fcn.0040a690
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x40c13c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x50], 0
jne 0x40beb0
call fcn.0040b5e0
jmp 0x40c13c
mov ecx, dword [ebp - 0x14]
call fcn.0040a6e0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x40], 0
jne 0x40bf0d
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x50]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.0040ceb0
add esp, 4
movzx eax, al
push eax
call fcn.00406cd0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40bef2
mov edx, dword [ebp + 8]
mov dword [ebp - 0xac], edx
jmp 0x40befd
call fcn.0040b5e0
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
jmp 0x40c13c
mov dword [ebp - 0x18], 8
lea eax, [ebp + 8]
push eax
call fcn.0040ceb0
add esp, 4
mov byte [ebp - 0x1a], al
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.00407440
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004053d0
mov ecx, eax
call fcn.004022e0
mov esi, eax
lea ecx, [ebp - 0x3c]
call fcn.00406610
add esi, eax
push esi
lea edx, [ebp - 0xa0]
push edx
lea ecx, [ebp - 0x3c]
call fcn.004053d0
mov ecx, eax
call fcn.004022e0
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.0040bdb0
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jl 0x40c106
cmp dword [ebp - 0xac], 1
jle 0x40bfc0
cmp dword [ebp - 0xac], 3
je 0x40c0b2
jmp 0x40c106
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004053d0
mov ecx, eax
call fcn.004022e0
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov dword [ebp - 0x40], ecx
je 0x40c036
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.004053d0
mov ecx, eax
call fcn.004022e0
push eax
call fcn.00414eab
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x40c036
call fcn.0040b5e0
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402070
mov eax, dword [ebp - 0x94]
jmp 0x40c13c
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x45], 1
lea eax, [ebp - 0x1a]
cmp dword [ebp - 0x20], eax
je 0x40c068
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402070
mov eax, dword [ebp - 0x90]
jmp 0x40c13c
cmp dword [ebp - 0x40], 0
jbe 0x40c070
jmp 0x40c0b0
lea ecx, [ebp - 0x3c]
call fcn.00406610
cmp eax, 0x20
jae 0x40c08b
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.0040aa00
jmp 0x40c0b0
call fcn.0040b5e0
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402070
mov eax, dword [ebp - 0x8c]
jmp 0x40c13c
jmp 0x40c128
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x50]
push ecx
movzx edx, byte [ebp - 0x1a]
push edx
call fcn.00406cd0
add esp, 8
movzx eax, al
test eax, eax
je 0x40c0d8
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xac], ecx
jmp 0x40c0e3
call fcn.0040b5e0
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.00402070
mov eax, dword [ebp - 0x88]
jmp 0x40c13c
call fcn.0040b5e0
mov dword [ebp - 0x84], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402070
mov eax, dword [ebp - 0x84]
jmp 0x40c13c
jmp 0x40bf36
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.00412229
mov esp, ebp
pop ebp
ret 4