Function at 0x40b490
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x465709
push eax
mov al, byte [0x488694]
mov dword fs:[0], esp
sub esp, 0xe4
test al, al
push ebx
push ebp
push esi
push edi
mov esi, ecx
je 0x40b4c1
xor eax, eax
jmp 0x40b9d6
mov eax, dword [0x4845f4]
mov byte [0x488694], 1
mov dword [esp + 0x18], eax
mov dword [esp + 0xfc], 0
mov dword [esp + 0x10], eax
lea eax, [esi + 0x1210]
mov byte [esp + 0xfc], 1
test eax, eax
je 0x40b517
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x40b517
mov ecx, dword [esi + 0x122c]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.0045de4e
mov eax, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_GetDC]
push eax
call ebp
push eax
call fcn.0045d8c6
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], eax
call fcn.00401c70
mov eax, dword [esp + 0x104]
mov byte [esp + 0xfc], 2
test eax, eax
je 0x40b6f9
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 0x5c]
call fcn.004228d0
mov ecx, eax
add ecx, 8
call fcn.00405e90
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x100], 3
call fcn.0045b0af
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc], 2
call fcn.0045af76
push str.Skins_
lea ecx, [esp + 0x1c]
call fcn.0045b352
lea edx, [esp + 0x18]
push str.Preview_logo.bmp
lea eax, [esp + 0x18]
push edx
push eax
call fcn.0045b20b
lea edi, [esi + 0x129c]
push eax
mov ecx, edi
mov byte [esp + 0x100], 4
call fcn.0045b0af
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc], 2
call fcn.0045af76
lea ecx, [esp + 0x64]
call fcn.0043c233
mov eax, dword [edi]
mov bl, 5
push 0
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x104], bl
call fcn.0043c2f6
test eax, eax
je 0x40b6dc
mov eax, dword [edi]
lea ecx, [esp + 0x38]
push eax
call fcn.00403520
test eax, eax
jne 0x40b614
mov edi, dword [edi]
lea ecx, [esp + 0x38]
push edi
call fcn.00403620
lea ecx, [esp + 0x18]
push str.1.bmp
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.0045b20b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x100], 6
call fcn.0045b0af
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc], bl
call fcn.0045af76
mov eax, dword [esi + 0x1c]
push eax
call ebp
push eax
call fcn.0045d8c6
test eax, eax
je 0x40b65d
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
sub ecx, edx
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x14]
sub edx, ebx
push edx
push ecx
push eax
lea ecx, [esp + 0x48]
call fcn.00403a10
lea edi, [esi + 0x1294]
mov ecx, edi
call fcn.0045e297
mov ebx, dword [esp + 0x34]
test ebx, ebx
jne 0x40b69b
xor eax, eax
jmp 0x40b69e
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x5c]
push edx
push edi
push ecx
push eax
call fcn.0042cdf0
mov edx, dword [esp + 0x20]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x24]
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x64]
mov byte [0x488694], 0
mov byte [esp + 0xfc], 2
call fcn.0043c270
jmp 0x40b99b
lea ecx, [esp + 0x1c]
lea edi, [esi + 0x12a4]
push ecx
mov ecx, edi
call fcn.00426520
lea edx, [esp + 0x20]
mov ecx, edi
push edx
mov byte [esp + 0x100], 7
call fcn.004263f0
push 0x5c
lea ecx, [esp + 0x20]
mov byte [esp + 0x100], 8
call fcn.00454e1e
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.00454da6
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x100], 9
call fcn.0045b0af
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc], 8
call fcn.0045af76
push 0
mov ecx, edi
call fcn.00425400
lea ecx, [esp + 0x1c]
lea edi, [esi + 0x129c]
push ecx
mov ecx, edi
mov ebx, eax
call fcn.0045b0af
lea ecx, [esp + 0x80]
call fcn.0043c233
mov eax, dword [edi]
push 0
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0x104], 0xa
call fcn.0043c2f6
test eax, eax
je 0x40b95e
test ebx, ebx
jl 0x40b95e
mov eax, dword [0x4845f4]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
lea edx, [esp + 0x9c]
lea ebp, [esi + 0x5c]
push edx
push ebx
mov ecx, ebp
mov byte [esp + 0x104], 0xb
call fcn.004228d0
mov ecx, eax
add ecx, 0x238
call fcn.004200a0
mov eax, dword [edi]
lea ecx, [esp + 0x38]
push eax
call fcn.00403520
test eax, eax
jne 0x40b814
mov edi, dword [edi]
lea ecx, [esp + 0x38]
push edi
call fcn.00403620
mov eax, dword [esp + 0xf0]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xb4]
push eax
push ecx
push edx
lea ecx, [esp + 0x44]
call fcn.004038c0
lea eax, [esp + 0x18]
push str.1.bmp
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0045b20b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x100], 0xc
call fcn.0045b0af
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc], 0xb
call fcn.0045af76
mov ecx, ebp
call fcn.004228d0
mov ebx, dword [esp + 0x34]
add eax, 8
test ebx, ebx
mov eax, dword [eax + 0x44]
jne 0x40b882
xor ecx, ecx
jmp 0x40b885
mov ecx, dword [ebx + 4]
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.00403a40
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0045d8c6
test eax, eax
je 0x40b8a7
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
sub ecx, edi
sub edx, ebp
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
push eax
lea ecx, [esp + 0x48]
call fcn.00403a10
lea edi, [esi + 0x1294]
mov ecx, edi
call fcn.0045e297
test ebx, ebx
jne 0x40b8e1
xor eax, eax
jmp 0x40b8e4
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x5c]
push edx
push edi
push ecx
push eax
call fcn.0042cdf0
mov edx, dword [esp + 0x20]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x24]
push 1
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0xa4]
mov byte [esp + 0xfc], 0xe
call fcn.0045af76
lea ecx, [esp + 0xa0]
mov byte [esp + 0xfc], 0xd
call fcn.0045af76
lea ecx, [esp + 0x9c]
mov byte [esp + 0xfc], 0xa
call fcn.0045af76
lea ecx, [esp + 0x80]
mov byte [0x488694], 0
mov byte [esp + 0xfc], 8
call fcn.0043c270
lea ecx, [esp + 0x20]
mov byte [esp + 0xfc], 7
call fcn.0045af76
lea ecx, [esp + 0x1c]
mov byte [esp + 0xfc], 2
call fcn.0045af76
lea ecx, [esp + 0x38]
mov byte [esp + 0xfc], 1
call fcn.00401d60
lea ecx, [esp + 0x10]
mov byte [esp + 0xfc], 0
call fcn.0045af76
lea ecx, [esp + 0x18]
mov dword [esp + 0xfc], 0xffffffff
call fcn.0045af76
mov eax, 1
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xf0
ret 4