Function at 0x405ba0
Capabilities:
Delete file
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b030
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x5f4274]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1ec], edi
call fcn.0040ab30
call fcn.0042a962
push 0x59d94c
push 0x8c
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x405c1e
call fcn.0042a962
push esi
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405c1e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.00402940
add esp, 4
call fcn.00402060
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.00404b90
mov dword [edi + 0x8e4], eax
call fcn.0041938a
mov ecx, eax
test ecx, ecx
je 0x405eea
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1e4], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1e4]
push str._APP__OS_version_:__s
push eax
call fcn.00404860
mov esi, dword [ebp - 0x1e4]
push esi
call fcn.00402060
add esp, 0x10
lea eax, [ebp - 0xa0]
xorps xmm0, xmm0
movups xmmword [ebp - 0xa0], xmm0
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x98]
sub eax, dword [ebp - 0x9c]
sub ebx, dword [ebp - 0xa0]
mov dword [ebp - 0x1e8], eax
call fcn.0042a962
push 0x32
push 0x59d968
push str.Window_Position
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x7c]
mov dword [ebp - 0xa0], eax
call fcn.0042a962
push 0x32
push 0x59d97c
push str.Window_Position
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x7c]
mov edi, dword [ebp - 0xa0]
push 1
mov dword [ebp - 0x9c], eax
lea edx, [edi + ebx]
mov ebx, dword [ebp - 0x1e8]
push ebx
mov dword [ebp - 0x98], edx
sub edx, edi
push edx
lea ecx, [eax + ebx]
mov ebx, dword [ebp - 0x1ec]
push eax
mov dword [ebp - 0x94], ecx
mov ecx, ebx
push edi
call fcn.00424648
push 0
push 0
push 0
push 1
push 1
lea ecx, [ebx + 0x8f0]
call fcn.00424648
push 0x8a
push 0x87
lea ecx, [ebx + 0xb50]
call fcn.00409840
push 0x1cd
push 0x206
lea ecx, [ebx + 0xb50]
call fcn.00409ba0
push 0
lea ecx, [ebx + 0xb50]
call fcn.00423ddc
push 0x8a
push 0x85
lea ecx, [ebx + 0xc70]
call fcn.00409840
push 0x1fe
push 0x212
lea ecx, [ebx + 0xc70]
call fcn.00409ba0
push 0
lea ecx, [ebx + 0xc70]
call fcn.00424960
push 6
push 0x86
lea ecx, [ebx + 0x990]
call fcn.00409210
push 0xc8
lea ecx, [ebx + 0x990]
call fcn.004094e0
push 1
push 0xa
push 0xa
push 0x1d6
push 0x19
lea ecx, [ebx + 0x990]
call fcn.00424648
push 0
lea ecx, [ebx + 0x990]
call fcn.00409190
push 0
lea ecx, [ebx + 0x990]
call fcn.00409510
push 0xff
push 0xcc0020
push 0x1b2
push 0x2b6
push 0
push 0
push 0x88
push 0x14
push 0x1c
lea ecx, [ebx + 0xa8]
call fcn.004089f0
mov ecx, ebx
mov dword [ebx + 0xd90], 0
call fcn.004068c0
mov ecx, ebx
call fcn.004056b0
lea eax, [ebx + 0x8b1]
mov ecx, ebx
push eax
push str.Gunz.exe
call fcn.00404a00
lea eax, [ebx + 0x8ca]
mov ecx, ebx
push eax
push 0x59d98c
call fcn.00404a00
push str._APP__Window_created_successfully.
call fcn.00402060
add esp, 4
lea eax, [ebp - 0x1e0]
push eax
push 0x59d9c4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x405e9b
push 0x59d9c4
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x64
push 0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405ec9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f63b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402850
int3