Function at 0x405e54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 0x98
call sub.ntdll.dll__chkstk
mov ecx, dword [esp + 0x98]
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x405e8d
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax + 0x41]
movzx eax, al
test eax, eax
jne 0x405e94
mov eax, 1
leave
ret
mov dword [ebp - 0x94], 8
call fcn.0040160c
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x88], eax
call fcn.0040160c
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x88]
mov edx, 4
add edx, dword [eax]
mov eax, dword [edx]
push eax
mov eax, 4
call sub.ntdll.dll__chkstk
mov eax, dword [esp + 4]
add esp, 4
mov edx, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x84]
mov dword [esp], ecx
mov ecx, edx
call eax
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
push eax
mov eax, 8
call sub.ntdll.dll__chkstk
mov eax, dword [esp + 8]
add esp, 4
lea eax, [ebp - 0x8c]
mov dword [esp], eax
lea eax, [ebp - 0x7c]
mov dword [esp + 4], eax
call fcn.004015dc
add esp, 8
mov byte [ebp - 0x9c], al
movzx eax, byte [ebp - 0x9c]
movzx eax, al
test eax, eax
je 0x405f4e
mov eax, 0
leave
ret
push eax
mov eax, 8
call sub.ntdll.dll__chkstk
mov eax, dword [esp + 8]
add esp, 4
lea eax, [ebp - 0x78]
mov dword [esp], 8
mov dword [esp + 4], 0
mov ecx, eax
call fcn.004018f8
mov dword [ebp - 0x5c], eax
mov eax, 0
cmp eax, 1
je 0x4061d0
push eax
mov eax, 4
call sub.ntdll.dll__chkstk
mov eax, dword [esp + 4]
add esp, 4
lea eax, [ebp - 0x78]
lea edx, [ebp - 0x58]
mov dword [esp], edx
mov ecx, eax
call fcn.00402034
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x58]
mov ecx, eax
call fcn.00406970
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x78]
mov ecx, eax
call fcn.004020b4
mov dword [ebp - 0x44], eax
push eax
mov eax, 4
call sub.ntdll.dll__chkstk
mov eax, dword [esp + 4]
add esp, 4
lea eax, [ebp - 0x78]
lea edx, [ebp - 0x40]
mov dword [esp], edx
mov ecx, eax
call fcn.00402034
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
mov ecx, eax
call fcn.00406970
mov dword [ebp - 0x34], eax
push eax
mov eax, 0x10
call sub.ntdll.dll__chkstk
mov eax, dword [esp + 0x10]
add esp, 4
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 0x98]
lea edx, [edx + 0x44]
mov dword [esp], edx
mov edx, dword [ebp - 0x48]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x34]
mov dword [esp + 8], edx
lea edx, [ebp - 0x30]
mov dword [esp + 0xc], edx
mov ecx, eax
call fcn.00406648
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x406070
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x40607a
mov eax, dword [ebp - 0x28]
cmp eax, 3
je 0x4061ae
jmp 0x4061bf
mov eax, dword [ebp - 0x98]
mov byte [eax + 0x41], 0
push eax
mov eax, 4
call sub.ntdll.dll__chkstk
mov eax, dword [esp + 4]
add esp, 4
lea eax, [ebp - 0x78]
lea edx, [ebp - 0x24]
mov dword [esp], edx
mov ecx, eax
call fcn.00402034
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
mov ecx, eax
call fcn.00406970
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
neg eax
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jbe 0x40614e
push eax
mov eax, 4
call sub.ntdll.dll__chkstk
mov eax, dword [esp + 4]
add esp, 4
lea eax, [ebp - 0x78]
lea edx, [ebp - 0x24]
mov dword [esp], edx
mov ecx, eax
call fcn.00402034
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
mov ecx, eax
call fcn.00406970
mov dword [ebp - 0xc], eax
push eax
mov eax, 0x10
call sub.ntdll.dll__chkstk
mov eax, dword [esp + 0x10]
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x4c]
mov dword [esp + 0xc], eax
call fcn.00409ea9
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
cmp eax, edx
je 0x40614e
lea eax, [ebp - 0x78]
mov ecx, eax
call fcn.00401a44
mov eax, 0
leave
ret
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax + 0x41]
movzx eax, al
test eax, eax
jne 0x406170
lea eax, [ebp - 0x78]
mov ecx, eax
call fcn.00401a44
mov eax, 1
leave
ret
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x405f7c
push eax
mov eax, 8
call sub.ntdll.dll__chkstk
mov eax, dword [esp + 8]
add esp, 4
lea eax, [ebp - 0x78]
mov dword [esp], 8
mov dword [esp + 4], 0
mov ecx, eax
call fcn.00401a7c
mov dword [ebp - 4], eax
jmp 0x405f7c
lea eax, [ebp - 0x78]
mov ecx, eax
call fcn.00401a44
mov eax, 1
leave
ret
lea eax, [ebp - 0x78]
mov ecx, eax
call fcn.00401a44
mov eax, 0
leave
ret
leave
ret