Function at 0x4cd100
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x57db90
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x34]
lea ebx, [ebp + 0x3cc]
lea edi, [esp + 0x18]
mov dword [esp + 0x2c], 0
call fcn.0048c390
lea eax, [esp + 0x1c]
push eax
lea edi, [ebp + 0x24]
push edi
mov ecx, 0xca
call fcn.0046eae0
push eax
mov ecx, 0x5a1e70
call fcn.004133e0
mov bl, al
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cd19b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
mov esi, dword [esp + 0x18]
je 0x4cd1af
cmp dword [esi - 0xc], 0
je 0x4cd1af
push ebp
call fcn.004cc330
lea eax, [esp + 0x18]
mov ecx, ebp
call fcn.004cdb60
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x20], esp
mov ebx, esp
call fcn.00410660
add eax, 0x10
mov dword [ebx], eax
call fcn.004cca20
test eax, eax
jle 0x4cd1f6
mov eax, dword [0x619880]
test eax, eax
jne 0x4cd1ea
call fcn.00418600
mov dword [0x619880], eax
cmp eax, 6
je 0x4cd1f6
push 0x5a1fa8
jmp 0x4cd1fb
push 0x5a1f70
mov ecx, 0xca
mov eax, edi
call fcn.0046ea90
push ecx
lea edi, [esi - 0x10]
mov eax, edi
mov dword [esp + 0x24], esp
mov ebx, esp
call fcn.00410660
add eax, 0x10
mov dword [ebx], eax
call fcn.004cd360
cmp eax, 0x20
jle 0x4cd31e
mov eax, dword [esi - 0xc]
add eax, 0xffffffff
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
call fcn.004100a0
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x1c]
lea ebp, [eax - 0x10]
cmp ebp, edi
je 0x4cd297
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x4cd286
mov ecx, dword [ebp]
cmp ecx, dword [edi]
jne 0x4cd286
mov eax, ebp
call fcn.00410660
mov esi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x4cd27d
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add esi, 0x10
mov dword [esp + 0x18], esi
jmp 0x4cd297
mov ebx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
call fcn.00410570
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0x3cc]
push esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esi - 0xc], 0
je 0x4cd2ba
mov ecx, dword [edi + 0x3cc]
push 5
push ecx
jmp 0x4cd2c3
mov edx, dword [edi + 0x3cc]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi - 0xc]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push eax
mov eax, dword [edi + 0x3cc]
add edi, 0x3cc
push 0xb1
push eax
call ebx
mov ecx, dword [edi]
push 0
push 0
push 0xb7
push ecx
call ebx
mov byte [esp + 0x2c], 0
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4cd207
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
jmp 0x4cd207
add esi, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4cd342
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4