Function at 0x477540
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6dc2b0
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x7ce4e4]
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 esi, ecx
mov ecx, dword [esi + 0x110]
test ecx, ecx
je 0x4777c2
call fcn.004795f0
test al, al
je 0x4777c2
push 0
push 0x7d945c
push 0x7d9428
push 0
push dword [esi + 0x8c]
call fcn.005c1512
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4777c2
call fcn.00479f80
mov dword [ebp - 0x234], fcn.005cff37
mov dword [ebp - 0x230], fcn.005cfea2
mov dword [ebp - 0x22c], fcn.005cff1c
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0x8000
mov dword [ebp - method.common::allocator_unsigned_char__class_common::TAllocDefault_.virtual_0], vtable.common::t_heap.0
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x21c], 0
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0
push eax
call fcn.0047c6c0
push str.clk_dodel
push str.Main
lea ecx, [ebp - 0x238]
xor esi, esi
call fcn.004a4b30
mov edx, eax
test edx, edx
je 0x47765c
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x477640
sub ecx, edi
sar ecx, 1
je 0x47765c
push edx
call fcn.005cb06c
add esp, 4
mov esi, eax
push 0xa
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [esi + 1]
push eax
call fcn.005db135
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push str.clk_dodel
push ecx
lea ecx, [ebp - 0x238]
call fcn.004a4c10
lea eax, [ebp - 0x238]
push eax
call fcn.0047ca60
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x228]
mov dword [ebp - method.common::allocator_unsigned_char__class_common::TAllocDefault_.virtual_0], vtable.common::allocator_unsigned_char__class_common::TAllocDefault_.0
test eax, eax
je 0x4776d2
mov ecx, dword [eax + 4]
push eax
mov dword [ebp - 0x228], ecx
call dword [ebp - 0x22c]
mov eax, dword [ebp - 0x228]
add esp, 4
test eax, eax
jne 0x4776b5
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebx + 0x19c]
test ecx, ecx
je 0x4777c2
mov dword [ecx + 0x1a8], 2
call fcn.004875d0
lea eax, [ebp - 0x228]
push eax
push dword [ebx + 0x104]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebx + 0x19c]
mov eax, dword [ebx + 0x2c]
push 0x1d
mov ecx, dword [edi + 0x2c]
sub eax, ecx
mov esi, dword [edi + 0x28]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x224]
push ecx
push esi
push eax
mov eax, dword [ebx + 0x28]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x228]
push eax
push 0xffffffffffffffff
push dword [edi + 0x104]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx + 0x19c]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 4
push dword [eax + 0x104]
call edi
mov eax, dword [ebx + 0x19c]
push dword [eax + 0x104]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [ebx + 0x19c]
cmp byte [esi + 0x30], 1
je 0x47778a
mov eax, dword [esi]
mov ecx, esi
push 1
mov byte [esi + 0x30], 1
call dword [eax + 0x48]
cmp dword [esi + 0x8c], esi
je 0x477796
mov byte [esi + 0x64], 1
push dword [esi + 0x104]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
neg eax
sbb eax, eax
neg eax
add eax, 4
push eax
push dword [esi + 0x104]
call edi
push 0
push dword [ebx + 0x104]
call dword [sym.imp.USER32.dll_EnableWindow]
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.005be209
mov esp, ebp
pop ebp
ret 4