Function at 0x405c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463805
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x48e4b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x40], 0
je 0x405c4a
mov ecx, dword [ebp - 0x34]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x405c56
mov al, 1
jmp 0x405eb9
mov dword [ebp - 0x7c], 8
call fcn.00401d20
push eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x58], eax
call fcn.00401d20
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.00401ca0
add esp, 8
movzx eax, al
test eax, eax
je 0x405c99
xor al, al
jmp 0x405eb9
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.00404f90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00405430
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x68], edx
mov byte [ebp - 4], 1
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405430
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00405460
mov esi, eax
mov ecx, dword [ebp - 0x68]
call fcn.00406230
add eax, esi
push eax
mov ecx, dword [ebp - 0x60]
call fcn.00406230
push eax
mov eax, dword [ebp - 0x34]
add eax, 0x48
push eax
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx + 0x40]
call fcn.004069f0
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.00404f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00404f30
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0
je 0x405d5a
cmp dword [ebp - 0x48], 1
je 0x405d61
cmp dword [ebp - 0x48], 3
je 0x405e75
jmp 0x405e8d
mov eax, dword [ebp - 0x34]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00405430
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x6c]
call fcn.00406230
mov ecx, dword [ebp - 0x30]
sub ecx, eax
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.00404f30
cmp dword [ebp - 0x44], 0
jbe 0x405df3
lea edx, [ebp - 0x94]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00405430
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x40]
or ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x50]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
push 1
mov ecx, dword [ebp - 0x5c]
call fcn.00406230
push eax
call fcn.0042c190
add esp, 0x10
cmp dword [ebp - 0x44], eax
je 0x405df3
mov dword [ebp - 0x4c], 1
jmp 0x405dfa
mov dword [ebp - 0x4c], 0
mov dl, byte [ebp - 0x4c]
mov byte [ebp - 0x38], dl
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x40]
and eax, 1
je 0x405e1e
and dword [ebp - 0x40], 0xfffffffe
lea ecx, [ebp - 0x94]
call fcn.00404f30
movzx ecx, byte [ebp - 0x38]
test ecx, ecx
je 0x405e3e
mov byte [ebp - 0x35], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403a50
mov al, byte [ebp - 0x35]
jmp 0x405eb9
mov edx, dword [ebp - 0x34]
movzx eax, byte [edx + 0x45]
test eax, eax
jne 0x405e61
mov byte [ebp - 0x36], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403a50
mov al, byte [ebp - 0x36]
jmp 0x405eb9
cmp dword [ebp - 0x44], 0
jne 0x405e73
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.00405230
jmp 0x405ea5
mov byte [ebp - 0x39], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403a50
mov al, byte [ebp - 0x39]
jmp 0x405eb9
mov byte [ebp - 0x37], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403a50
mov al, byte [ebp - 0x37]
jmp 0x405eb9
jmp 0x405cac
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004270b0
mov esp, ebp
pop ebp
ret