Function at 0x4c5240
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ae38
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x5b7de4]
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 ebx, ecx
cmp dword [ebp + 0x1c], 0
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], esi
jne 0x4c5649
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
jne 0x4c52ae
lea eax, [ebp - 0x78]
push eax
push edi
push dword [ebp + 0x10]
push 0x110
call fcn.004b47e0
mov dword [esi], eax
mov eax, 1
jmp 0x4c564b
cmp eax, 0x7b
jne 0x4c52ce
lea eax, [ebp - 0x78]
push eax
push edi
push dword [ebp + 0x10]
push 0x7b
call fcn.004abfa0
mov dword [esi], eax
mov eax, 1
jmp 0x4c564b
mov ecx, dword [ebp + 0x10]
cmp eax, 0x111
jne 0x4c5303
mov edx, 0x80ac
cmp dx, cx
jne 0x4c5574
lea eax, [ebp - 0x78]
shr ecx, 0x10
push eax
push edi
push edx
push ecx
mov ecx, ebx
call fcn.004afad0
mov dword [esi], eax
mov eax, 1
jmp 0x4c564b
cmp eax, 0xc9d
jne 0x4c532a
cmp dword [ebx + 0x100], 0
je 0x4c531a
mov ecx, ebx
call fcn.004a8390
mov dword [esi], 0
mov eax, 1
jmp 0x4c564b
cmp eax, 0xe2d
je 0x4c530a
cmp eax, 0xfbd
je 0x4c530a
cmp eax, 0x2f15
je 0x4c530a
cmp eax, 0x4e
jne 0x4c5574
cmp dword [edi + 4], 0x475
jne 0x4c5413
cmp dword [edi + 8], 0xfffffffe
jne 0x4c537e
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 1
push eax
push edi
push ecx
mov ecx, ebx
call fcn.004ab340
cmp dword [ebp - 0x78], 0
mov dword [esi], eax
jne 0x4c52a4
mov ecx, dword [ebp + 0x10]
cmp dword [edi + 4], 0x475
jne 0x4c5413
cmp dword [edi + 8], 0xfffffffd
jne 0x4c53b1
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 1
push eax
push edi
push ecx
mov ecx, ebx
call fcn.004ab340
cmp dword [ebp - 0x78], 0
mov dword [esi], eax
jne 0x4c52a4
cmp dword [edi + 4], 0x475
jne 0x4c5413
cmp dword [edi + 8], 0xfffffffb
jne 0x4c53e2
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 1
push eax
push edi
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.004ab340
cmp dword [ebp - 0x78], 0
mov dword [esi], eax
jne 0x4c52a4
cmp dword [edi + 4], 0x475
jne 0x4c5413
cmp dword [edi + 8], 0xfffffffa
jne 0x4c5413
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 1
push eax
push edi
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.004ab340
cmp dword [ebp - 0x78], 0
mov dword [esi], eax
jne 0x4c52a4
mov eax, dword [edi + 4]
cmp eax, 0x475
jne 0x4c556e
cmp dword [edi + 8], 0xfffffffd
jne 0x4c5444
lea eax, [ebp - 0x80]
mov ecx, ebx
push eax
push 0
push 0
push 0
call fcn.004afad0
mov dword [esi], eax
mov eax, 1
jmp 0x4c564b
cmp eax, 0x475
jne 0x4c556e
cmp dword [edi + 8], 0xffffff6a
jne 0x4c556e
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 0x74]
mov esi, dword [edi + 0x10]
mov dword [ebp - 0x78], eax
call fcn.0048a660
lea eax, [ebp - 0x74]
mov dword [ebp - 4], 0
push eax
push esi
mov ecx, ebx
call fcn.0049c140
cmp dword [ebp - 0x70], 0
je 0x4c5553
test byte [edi + 0xc], 1
je 0x4c5553
mov eax, dword [ebp - 0x78]
sub eax, 0
je 0x4c553b
sub eax, 1
je 0x4c5504
sub eax, 1
jne 0x4c5553
test byte [ebp - 0x50], 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
jne 0x4c54cd
push 7
push 0x579bb0
jmp 0x4c54d4
push 8
push 0x57803c
call fcn.0040a4a0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov eax, dword [edi + 0x24]
push 0x5707c8
dec eax
push eax
push dword [edi + 0x20]
call fcn.0041ac20
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.00408f00
jmp 0x4c5553
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040b5a0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
mov eax, dword [edi + 0x24]
push 0x5707c8
dec eax
push eax
push dword [edi + 0x20]
call fcn.0041ac20
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.00408f00
jmp 0x4c5553
push dword [ebp - 0x6c]
mov eax, dword [edi + 0x24]
push 0x5707bc
dec eax
push eax
push dword [edi + 0x20]
call fcn.0041ac20
add esp, 0x10
lea ecx, [ebp - 0x74]
call fcn.0048de30
mov eax, dword [ebp - 0x7c]
mov dword [eax], 0
mov eax, 1
jmp 0x4c564b
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
lea edx, [ebx + 0xdc]
cmp eax, 5
jne 0x4c55e3
xor eax, eax
test edx, edx
cmove ebx, eax
cmp byte [edx + 0x1c], al
je 0x4c55bb
push 0xe801
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp + 0x10]
cmp ecx, 2
jne 0x4c55ac
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4c55c0
test ecx, ecx
jne 0x4c55bb
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4c55c0
cmp ecx, 1
je 0x4c5600
mov eax, edi
lea ecx, [ebx + 0xdc]
shr eax, 0x10
cwde
push eax
movsx eax, di
push eax
call fcn.00497190
mov dword [esi], 0
mov eax, 1
jmp 0x4c564b
cmp eax, 0x24
jne 0x4c560d
cmp dword [edx + 0x14], 0xffffffff
je 0x4c5600
cmp dword [edx + 0x18], 0xffffffff
je 0x4c5600
mov eax, dword [edx + 0x14]
mov dword [edi + 0x18], eax
mov eax, dword [edx + 0x18]
mov dword [edi + 0x1c], eax
mov dword [esi], 0
mov eax, 1
jmp 0x4c564b
lea edx, [ebp - 0x78]
mov dword [ebp - 0x78], 1
push edx
push edi
push ecx
push eax
mov ecx, ebx
call fcn.0042a980
cmp dword [ebp - 0x78], 0
mov dword [esi], eax
jne 0x4c52a4
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x80]
call fcn.00494360
add esp, 0x14
test eax, eax
jne 0x4c52a4
xor eax, eax
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.005189ad
mov esp, ebp
pop ebp
ret 0x18