Function at 0x4041b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463695
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x48e4b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], 0
call fcn.00401d20
mov dword [ebp - 0x6c], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call fcn.00401ca0
add esp, 8
movzx edx, al
test edx, edx
je 0x404219
lea eax, [ebp + 8]
push eax
call fcn.00401cd0
add esp, 4
jmp 0x404592
mov ecx, dword [ebp - 0x3c]
call fcn.00405790
test eax, eax
je 0x40425d
mov ecx, dword [ebp - 0x3c]
call fcn.00405790
mov esi, eax
mov ecx, dword [ebp - 0x3c]
call fcn.00405810
cmp esi, eax
jae 0x40425d
lea ecx, [ebp + 8]
push ecx
call fcn.00401c80
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x3c]
call fcn.00405930
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x404592
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x50], 0
jne 0x404270
call fcn.00401d20
jmp 0x404592
mov ecx, dword [ebp - 0x3c]
call fcn.00405f20
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x40], 0
jne 0x4042c4
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x50]
push edx
lea eax, [ebp + 8]
push eax
call fcn.00401c80
add esp, 4
movzx ecx, al
push ecx
call fcn.004037d0
add esp, 8
movzx edx, al
test edx, edx
je 0x4042af
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
jmp 0x4042b7
call fcn.00401d20
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
jmp 0x404592
mov dword [ebp - 0x98], 8
lea ecx, [ebp + 8]
push ecx
call fcn.00401c80
add esp, 4
mov byte [ebp - 0x12], al
push 0
push 8
lea ecx, [ebp - 0x30]
call fcn.00404f90
mov dword [ebp - 4], 0
lea edx, [ebp - 0xbc]
push edx
lea ecx, [ebp - 0x30]
call fcn.00405430
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00405430
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x64], edx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
call fcn.00405460
mov esi, eax
mov ecx, dword [ebp - 0x90]
call fcn.00406230
add eax, esi
push eax
mov ecx, dword [ebp - 0x64]
call fcn.00406230
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x11]
push edx
lea eax, [ebp - 0x12]
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edx + 0x40]
call fcn.004060f0
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc8]
call fcn.00404f30
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.00404f30
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jl 0x404562
cmp dword [ebp - 0x4c], 1
jle 0x4043c0
cmp dword [ebp - 0x4c], 3
je 0x40451d
jmp 0x404562
lea ecx, [ebp - 0xa4]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00405430
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x80], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x80]
call fcn.00406230
mov ecx, dword [ebp - 0x34]
sub ecx, eax
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.00404f30
cmp dword [ebp - 0x48], 0
jbe 0x404458
lea edx, [ebp - 0xb0]
push edx
lea ecx, [ebp - 0x30]
call fcn.00405430
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x44]
or ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x50]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
push 1
mov ecx, dword [ebp - 0x7c]
call fcn.00406230
push eax
call fcn.0042c190
add esp, 0x10
cmp dword [ebp - 0x48], eax
je 0x404458
mov dword [ebp - 0x50], 1
jmp 0x40445f
mov dword [ebp - 0x50], 0
mov dl, byte [ebp - 0x50]
mov byte [ebp - 0x3d], dl
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x44]
and eax, 1
je 0x404483
and dword [ebp - 0x44], 0xfffffffe
lea ecx, [ebp - 0xb0]
call fcn.00404f30
movzx ecx, byte [ebp - 0x3d]
test ecx, ecx
je 0x4044b0
call fcn.00401d20
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403a50
mov eax, dword [ebp - 0x8c]
jmp 0x404592
mov edx, dword [ebp - 0x3c]
mov byte [edx + 0x45], 1
lea eax, [ebp - 0x12]
cmp dword [ebp - 0x38], eax
je 0x4044dc
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403a50
mov eax, dword [ebp - 0x60]
jmp 0x404592
cmp dword [ebp - 0x48], 0
jbe 0x4044e4
jmp 0x40451b
lea ecx, [ebp - 0x30]
call fcn.00405460
cmp eax, 0x20
jae 0x4044ff
push 0
push 8
lea ecx, [ebp - 0x30]
call fcn.00405230
jmp 0x40451b
call fcn.00401d20
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403a50
mov eax, dword [ebp - 0x68]
jmp 0x404592
jmp 0x40457e
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x50]
push eax
movzx ecx, byte [ebp - 0x12]
push ecx
call fcn.004037d0
add esp, 8
movzx edx, al
test edx, edx
je 0x404540
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
jmp 0x404548
call fcn.00401d20
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403a50
mov eax, dword [ebp - 0x70]
jmp 0x404592
call fcn.00401d20
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403a50
mov eax, dword [ebp - 0x78]
jmp 0x404592
jmp 0x4042f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004270b0
mov esp, ebp
pop ebp
ret 4