Function at 0x420220
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d6e0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4be5b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebx + 0x458]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov dword [ebx + 0x458], esi
cmp edi, 0x201
je 0x4203db
cmp esi, 0x201
jne 0x4203b3
cmp dword [0x4c2550], 0
jne 0x420288
push 0
push dword [ebx - 0x24]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4c2558]
lea ecx, [ebx - 0x28]
call fcn.00420750
cmp dword [0x4c255c], 0
je 0x4203b3
push 0x486d04
lea ecx, [ebp - 0x14]
call fcn.00403f50
mov dword [ebp - 4], 0
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x4204bb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
call fcn.0040b420
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, esp
push str.__gamename
call fcn.00403f50
mov ecx, esi
call fcn.0041b8f0
test eax, eax
mov eax, dword [ebp - 0x10]
je 0x420316
cmp dword [eax - 0xc], 0
je 0x420316
push eax
lea eax, [ebp - 0x14]
push 0x486d18
push eax
call fcn.00409e30
mov eax, dword [ebp - 0x10]
add esp, 0xc
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420332
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x14]
lea eax, [ebx + 0x130]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x100
push 0x486d2c
push eax
mov dword [ebx + 0x1c], 0x10
mov dword [ebx + 0x330], 0xbb8
mov dword [ebx + 0x3b4], 1
call esi
test edi, edi
mov eax, 0x482aa0
push 0x40
cmovne eax, edi
push eax
lea eax, [ebx + 0x334]
push eax
call esi
lea eax, [ebx + 0x10]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4203ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
cmp edi, 0x101
jne 0x4203c7
cmp esi, edi
je 0x42041d
lea edi, [ebx + 0x4c0]
jmp 0x42040d
cmp edi, 0x301
jne 0x42041d
cmp esi, edi
je 0x42041d
lea edi, [ebx + 0x57c]
jmp 0x42040d
cmp esi, 0x201
je 0x42041d
cmp dword [ebx + 0xc], 0
je 0x4203fc
lea eax, [ebx + 0x10]
mov dword [ebx + 0x1c], 0
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push 5
push dword [ebx - 0x24]
call dword [sym.imp.USER32.dll_ShowWindow]
lea edi, [ebx + 0x524]
mov eax, dword [edi]
push edi
call dword [eax + 0x10]
test eax, eax
je 0x42041d
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov edi, dword [sym.imp.USER32.dll_ShowWindowAsync]
push 0
push dword [ebx + 0x4a0]
call edi
push 0
push dword [ebx + 0x504]
call edi
push 0
push dword [ebx + 0x55c]
call edi
cmp esi, 0x101
jne 0x420463
mov ecx, dword [ebx + 0x4c0]
lea eax, [ebx + 0x4c0]
push eax
call dword [ecx + 4]
push 5
push dword [ebx + 0x4a0]
jmp 0x4204a5
cmp esi, 0x201
jne 0x420485
mov ecx, dword [ebx + 0x524]
lea eax, [ebx + 0x524]
push eax
call dword [ecx + 4]
push 5
push dword [ebx + 0x504]
jmp 0x4204a5
cmp esi, 0x301
jne 0x4204a7
mov ecx, dword [ebx + 0x57c]
lea eax, [ebx + 0x57c]
push eax
call dword [ecx + 4]
push 5
push dword [ebx + 0x55c]
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004068b0
int3