Function at 0x40a6b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425310
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43a504]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 5
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [edi + 0x2c]
call ebx
mov ecx, dword [edi + 0x44]
call fcn.0041ee70
cmp eax, 2
jne 0x40a72d
push 0
push dword [edi + 0x30]
call ebx
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
dec eax
push eax
push esi
call dword [sym.imp.USER32.dll_GetMenuItemID]
push 2
push eax
push esi
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x40a8a1
call fcn.004023c0
mov ecx, eax
test ecx, ecx
jne 0x40a74d
push 0x80004005
call fcn.00401f90
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x68
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0040a630
push 0
push dword [eax]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
call fcn.00409fd0
mov edx, dword [ebp - 0x14]
or ebx, 0xffffffff
add esp, 0xc
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a7a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
push esi
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0
push 0x402
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
push 2
mov ecx, edi
call fcn.0040b9c0
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40a7fd
push eax
push 0x1388
push 0x101
push dword [edi + 4]
mov dword [edi + 0x40], 1
call dword [sym.imp.USER32.dll_SetTimer]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], 0xffffffff
jmp 0x40a86f
mov ecx, edi
call fcn.0040c2a0
test eax, eax
je 0x40a84f
push 0
push 0x3f1
push 0x111
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40a907
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0040b690
push 0
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40a907
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x40a907
mov ecx, dword [edi + 0x44]
push 0
call fcn.0041f790
mov ecx, edi
mov esi, eax
call fcn.0040c2a0
test eax, eax
je 0x40a919
test esi, esi
jne 0x40a8ff
mov ecx, dword [edi + 0x44]
lea eax, [ebp - 0x14]
push eax
call fcn.0041ee80
push dword [eax]
push 0x42c3fc
push 0x42c400
push str.versioninfo
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a8ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40a8ff
push esi
mov ecx, edi
mov dword [edi + 0x40], 4
call fcn.0040b690
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret