Function at 0x51a6f0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
mov ebx, dword [esi + 0x4444]
mov dword [esp + 0x24], esi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xb
push ebx
call ebp
mov eax, dword [esi + 0x24]
push 0
push 0
push 0x1004
push eax
call ebp
mov edi, eax
push ebx
mov dword [esp + 0x2c], edi
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x454
push ebx
call ebp
dec edi
test edi, edi
jl 0x51a756
push 0
push edi
push 0x416
push ebx
call ebp
dec edi
jns 0x51a748
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x51a95e
mov ecx, dword [0x546560]
xor eax, eax
mov dword [esp + 0x10], ecx
mov ecx, 9
lea edi, [esp + 0x38]
mov dword [esp + 0x34], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 1
call fcn.0051acb0
mov edi, 0x100
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], edi
call fcn.00413620
test eax, eax
je 0x51a7c6
mov edx, dword [esp + 0x10]
mov dword [edx - 8], edi
mov eax, dword [esp + 0x10]
mov word [eax + edi*2], 0
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x48], eax
je 0x51a7ee
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x34]
push ecx
push edx
push 0x1073
push eax
call ebp
lea ecx, [edi - 1]
cmp eax, ecx
jl 0x51a7ee
add edi, edi
jmp 0x51a79f
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00405bb0
mov edx, dword [esp + 0x10]
push edx
call fcn.0053183e
mov edi, eax
add esp, 4
shl eax, 4
add eax, edi
mov dword [esp + 0x1c], edi
mov ecx, dword [esi + eax*4 + 0x7c]
lea eax, [esi + eax*4]
test ecx, ecx
je 0x51a91a
mov cl, byte [eax + 0x49]
lea esi, [eax + 0x40]
and cl, 1
cmp cl, 1
je 0x51a90c
mov eax, dword [esi + 4]
test eax, eax
je 0x51a90c
mov edx, dword [esp + 0x18]
push esi
push edx
push 0x443
push ebx
call ebp
lea eax, [esi + 0x14]
add esi, 0x38
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], esi
mov eax, dword [esi]
mov ecx, 0xff
mov edx, dword [eax - 0xc]
lea esi, [eax - 0xc]
cmp edx, 1
mov dword [esp + 0x2c], esi
jg 0x51a874
cmp dword [eax - 4], ecx
jge 0x51a8de
mov eax, dword [eax - 8]
cmp eax, ecx
mov dword [esp + 0x24], eax
jle 0x51a881
mov ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x51a8e4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
add esi, 0xc
mov edi, dword [edx]
lea ecx, [ecx + ecx + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2c]
mov ecx, edx
mov edx, dword [ecx]
mov dword [edx - 8], eax
mov eax, dword [0x546564]
cmp esi, eax
je 0x51a8da
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x51a8da
push esi
call fcn.00531732
add esp, 4
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x30]
push ecx
mov dword [ecx + 0x18], eax
lea eax, [edi + 1]
mov edx, eax
mov dword [ecx + 0x1c], 0xfa
shl edx, 4
add edx, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + edx*4]
push ecx
push 0x440
jmp 0x51a913
push esi
push edi
push 0x443
push ebx
call ebp
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x51a949
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x51a949
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x51a76a
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x4444]
push ecx
push 0
push 0x457
push edx
call ebp
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x4444]
push eax
push 0
push 0x41f
push ecx
call ebp
mov edx, dword [esi + 0x4444]
push 0x180018
push 0
push 0x41f
push edx
call ebp
push 0
push 1
push 0xb
push ebx
call ebp
push 1
push 0
push 0x454
push ebx
call ebp
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 0x3e8
push 0xb37f
push 0x111
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret