Function at 0x405110
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4644b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [0x4845f4]
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea ecx, [esi + 0x5c]
mov byte [esp + 0x6c], 4
call fcn.004228d0
mov edi, eax
cmp edi, ebx
jne 0x4051bd
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 3
call fcn.0045af76
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call fcn.0045af76
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 1
call fcn.0045af76
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], bl
call fcn.0045af76
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0045af76
xor eax, eax
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
lea eax, [esp + 0x24]
lea ecx, [edi + 8]
push eax
call fcn.00405e90
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 5
call fcn.0045b0af
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 4
call fcn.0045af76
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x40c]
call fcn.00458704
mov edx, dword [esp + 0x20]
push 0x488690
push edx
call fcn.004440da
add esp, 8
test eax, eax
je 0x4054c4
lea eax, [esp + 0x20]
lea ecx, [esp + 0x24]
push eax
push str.Theme_
push ecx
call fcn.0045b27f
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], 6
call fcn.0045b38e
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 4
call fcn.0045af76
lea edx, [esp + 0x14]
push str.Menu.jpg
lea eax, [esp + 0x28]
push edx
push eax
call fcn.0045b20b
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 7
call fcn.0045b0af
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 4
call fcn.0045af76
lea ecx, [esp + 0x14]
push str.Chapter.jpg
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.0045b20b
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 8
call fcn.0045b0af
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 4
add al, 0xe8
rcr byte [ebp + eax], cl
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0045aceb
mov ecx, edi
call fcn.00414c30
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0045aceb
mov ecx, edi
call fcn.00414cb0
mov eax, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_GetDC]
push eax
call edi
push eax
call fcn.0045d8c6
lea ecx, [esp + 0x40]
mov ebp, eax
call fcn.00401c70
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x6c], 9
push ecx
lea ecx, [esp + 0x44]
call fcn.00403520
test eax, eax
jne 0x405316
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
push edx
call fcn.00403620
lea eax, [esp + 0x14]
push str.1.bmp
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0045b20b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 0xa
call fcn.0045b0af
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 9
call fcn.0045af76
mov eax, dword [esi + 0x3b0]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.0045de4e
mov edx, dword [esi + 0x1c]
push edx
call edi
push eax
call fcn.0045d8c6
test eax, eax
je 0x405378
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
sub ecx, ebx
push ecx
mov ecx, dword [esp + 0x34]
sub edx, ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
push eax
lea ecx, [esp + 0x50]
call fcn.00403a10
test ebp, ebp
jne 0x4053a5
xor eax, eax
jmp 0x4053a8
mov eax, dword [ebp + 4]
lea edx, [esp + 0x28]
lea ecx, [esi + 0x49c]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.0042cdf0
add esp, 0x10
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x44]
call fcn.00403520
test eax, eax
jne 0x4053ef
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push edx
call fcn.00403620
lea eax, [esp + 0x14]
push str.2.bmp
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0045b20b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 0xb
call fcn.0045b0af
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 9
call fcn.0045af76
mov eax, dword [esi + 0x374]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.0045de4e
mov edx, dword [esi + 0x1c]
push edx
call edi
push eax
call fcn.0045d8c6
test eax, eax
je 0x405451
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
sub ecx, edi
push ecx
mov ecx, dword [esp + 0x34]
sub edx, ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
push eax
lea ecx, [esp + 0x50]
call fcn.00403a10
test ebp, ebp
jne 0x40547e
xor eax, eax
jmp 0x405481
mov eax, dword [ebp + 4]
lea edx, [esp + 0x28]
lea ecx, [esi + 0x4a4]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
call fcn.0042cdf0
add esp, 0x10
or ebx, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 4]
mov edx, dword [esi + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x40]
mov byte [esp + 0x6c], 4
call fcn.00401d60
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 3
call fcn.0045af76
lea ecx, [esp + 0x14]
mov byte [esp + 0x6c], 2
call fcn.0045af76
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 1
call fcn.0045af76
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 0
call fcn.0045af76
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
insb byte es:[edi], dx
invalid
invalid
invalid
invalid
call fcn.0045af76
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret