Function at 0x4a09f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x50dc10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
mov dword [ebp - 0xc4], ebx
call dword [0x595d94]
mov edi, eax
mov dword [ebp - 0xb8], edi
test edi, edi
je 0x4a1161
mov eax, dword [0x52e838]
test eax, eax
je 0x4a0a68
mov ecx, dword [eax + 4]
test ecx, 0x40000000
je 0x4a0a68
mov edx, dword [eax + 0x1f0c]
test edx, edx
je 0x4a0a4c
mov dword [0x52e83c], edx
mov ecx, dword [eax + 4]
test ecx, 0x40000000
je 0x4a0a68
mov eax, dword [eax + 0x1f2c]
test eax, eax
je 0x4a0a68
push 0x4ef64c
push edi
call eax
jmp 0x4a0a73
push 0x4ef64c
push edi
call fcn.004939c0
add esp, 8
mov dword [ebp - 0xbc], eax
test eax, eax
je 0x4a1161
push esi
mov esi, dword [eax + 0x11c]
test esi, esi
je 0x4a1160
mov eax, dword [esi + 0x90]
test eax, eax
je 0x4a0b06
cmp eax, ebx
je 0x4a0b06
cmp dword [ebp + 0xc], 2
je 0x4a0b1a
mov edi, dword [esi]
xor ecx, ecx
test edi, edi
jle 0x4a1160
mov esi, dword [esi + 4]
mov edx, esi
mov eax, dword [edx]
cmp dword [eax], ebx
je 0x4a0ad7
inc ecx
add edx, 4
cmp ecx, edi
jl 0x4a0ab8
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
cmp ecx, edi
jge 0x4a1160
push dword [ebp + 0xc]
mov eax, dword [esi + ecx*4]
add eax, 0x88
push 8
push eax
call fcn.00481a00
add esp, 0xc
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
cmp ecx, 2
jne 0x4a0d16
cmp eax, ebx
je 0x4a1160
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x90], ebx
mov dword [ebp - 0xcc], eax
nop dword [eax + eax]
mov eax, dword [0x52e838]
test eax, eax
je 0x4a0b73
mov ecx, dword [eax + 4]
test ecx, 0x40000000
je 0x4a0b73
mov edx, dword [eax + 0x1f0c]
test edx, edx
je 0x4a0b57
mov dword [0x52e83c], edx
mov ecx, dword [eax + 4]
test ecx, 0x40000000
je 0x4a0b73
mov eax, dword [eax + 0x1f2c]
test eax, eax
je 0x4a0b73
push 0x4ef64c
push edi
call eax
jmp 0x4a0b7e
push 0x4ef64c
push edi
call fcn.004939c0
add esp, 8
mov dword [ebp - 0xbc], eax
test eax, eax
je 0x4a0ce2
mov ebx, dword [eax + 0x11c]
test ebx, ebx
je 0x4a0ce2
mov ecx, dword [ebx]
xor eax, eax
mov dword [ebp - 0xc0], eax
test ecx, ecx
jle 0x4a0c9b
nop
lea esi, [eax*4]
mov eax, dword [ebx + 4]
mov dword [ebp - 0xc8], esi
mov ecx, dword [eax + esi]
mov eax, dword [ecx + 0x88]
add ecx, 0x88
and eax, 1
push eax
push 8
push ecx
call fcn.00481a00
mov eax, dword [ebx + 4]
add esp, 0xc
mov edx, dword [esi + eax]
mov eax, dword [ebp - 0xc4]
cmp eax, dword [edx]
je 0x4a0c3b
mov ecx, dword [edx + 0x88]
mov eax, ecx
mov edi, dword [ebp - 0xbc]
and eax, 0xfffffffe
or ecx, 2
push 0
cmp dword [edi + 0x130], 0
mov edi, dword [ebp - 0xcc]
cmove ecx, eax
mov dword [edx + 0x88], ecx
mov eax, dword [ebx + 4]
mov eax, dword [esi + eax]
push dword [eax]
call edi
mov eax, dword [ebx + 4]
mov eax, dword [eax + esi]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x4a0c7e
push 0
push eax
call edi
jmp 0x4a0c7e
mov ecx, 0x2c
lea edi, [ebp - 0xb4]
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc8]
mov dword [edx + 0x44], 0
mov eax, dword [ebx + 4]
mov eax, dword [eax + ecx]
mov dword [eax + 0x40], 0
mov eax, dword [ebx + 4]
mov eax, dword [eax + ecx]
mov dword [eax + 0x6c], 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + ecx]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebx]
inc eax
mov dword [ebp - 0xc0], eax
cmp eax, ecx
jl 0x4a0bb0
mov edi, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xbc]
cmp dword [eax + 0x130], 0
jne 0x4a0cb7
push 0
push edi
call fcn.0049da40
mov ecx, dword [ebx]
add esp, 8
xor edx, edx
test ecx, ecx
jle 0x4a0ce2
nop dword [eax]
mov eax, dword [ebx + 4]
mov edi, dword [eax + edx*4]
mov eax, dword [ebp - 0xc4]
cmp eax, dword [edi]
jne 0x4a0cdd
mov ecx, 0x2c
lea esi, [ebp - 0xb4]
rep movsd dword es:[edi], dword [esi]
inc edx
cmp edx, dword [ebx]
jl 0x4a0cc0
mov eax, dword [ebp - 0xb8]
push eax
mov dword [ebp - 0xc4], eax
call dword [0x595d94]
mov edi, eax
mov dword [ebp - 0xb8], eax
test edi, edi
jne 0x4a0b30
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4a0ed9
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x90], 0
mov dword [ebp - 0xc8], ebx
mov eax, dword [0x52e838]
test eax, eax
je 0x4a0d77
mov ecx, dword [eax + 4]
test ecx, 0x40000000
je 0x4a0d77
mov edx, dword [eax + 0x1f0c]
test edx, edx
je 0x4a0d5b
mov dword [0x52e83c], edx
mov ecx, dword [eax + 4]
test ecx, 0x40000000
je 0x4a0d77
mov eax, dword [eax + 0x1f2c]
test eax, eax
je 0x4a0d77
push 0x4ef64c
push edi
call eax
jmp 0x4a0d82
push 0x4ef64c
push edi
call fcn.004939c0
add esp, 8
mov dword [ebp - 0xc0], eax
test eax, eax
je 0x4a0eb1
mov esi, dword [eax + 0x11c]
test esi, esi
je 0x4a0eb1
xor edi, edi
cmp dword [esi], edi
jle 0x4a0e4d
nop dword [eax + eax]
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*4]
mov eax, dword [ebp - 0xc4]
cmp eax, dword [ecx]
je 0x4a0e09
mov ebx, dword [ebp - 0xc0]
mov eax, dword [ecx + 0x88]
mov edx, eax
and edx, 8
cmp dword [ebx + 0x130], 0
mov ebx, dword [ebp - 0xc8]
je 0x4a0def
test edx, edx
jne 0x4a0df3
or eax, 2
mov dword [ecx + 0x88], eax
jmp 0x4a0e23
test edx, edx
je 0x4a0dfe
or eax, 1
mov dword [ecx + 0x88], eax
jmp 0x4a0e44
and eax, 0xfffffffe
mov dword [ecx + 0x88], eax
jmp 0x4a0e23
cmp dword [ebp + 0xc], 0
jne 0x4a0e44
and dword [ecx + 0x88], 0xfffffffe
mov eax, dword [esi + 4]
mov eax, dword [eax + edi*4]
and dword [eax + 0x88], 0xfffffff7
mov eax, dword [esi + 4]
push 0
mov eax, dword [eax + edi*4]
push dword [eax]
call ebx
mov eax, dword [esi + 4]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x4a0e44
push 0
push eax
call ebx
inc edi
cmp edi, dword [esi]
jl 0x4a0db0
mov eax, dword [ebp - 0xb8]
push 0
push eax
call fcn.0049da40
xor edi, edi
add esp, 8
cmp dword [esi], edi
jle 0x4a0eab
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [esi + 4]
mov eax, dword [eax + edi*4]
test byte [eax + 0x88], 8
je 0x4a0ea6
push 5
push dword [eax]
call ebx
mov eax, dword [esi + 4]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 0xa0]
test ecx, ecx
je 0x4a0ea6
mov eax, dword [eax + 0x88]
and al, 0x11
cmp al, 1
jne 0x4a0ea6
push 5
push ecx
call ebx
inc edi
cmp edi, dword [esi]
jl 0x4a0e70
mov edi, dword [ebp - 0xb8]
push edi
call dword [0x595d94]
mov edi, eax
mov dword [ebp - 0xb8], eax
test edi, edi
jne 0x4a0d34
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x4a0ffa
cmp dword [esi], ebx
jle 0x4a0f7b
mov edi, dword [ebp - 0xbc]
nop
cmp dword [edi + 0x130], 0
je 0x4a0f13
test ecx, ecx
jne 0x4a0f13
mov eax, dword [esi + 4]
lea edx, [ebx*4]
mov eax, dword [eax + edx]
or dword [eax + 0x88], 2
jmp 0x4a0f40
cmp dword [ebp + 0xc], 0
lea edx, [ebx*4]
mov eax, dword [esi + 4]
mov ecx, dword [eax + edx]
mov eax, dword [ecx + 0x88]
je 0x4a0f37
or eax, 9
mov dword [ecx + 0x88], eax
jmp 0x4a0f69
and eax, 0xfffffff6
mov dword [ecx + 0x88], eax
mov eax, dword [esi + 4]
push 0
mov eax, dword [edx + eax]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x4a0f69
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 0xc]
inc ebx
cmp ebx, dword [esi]
jl 0x4a0ef0
mov edi, dword [ebp - 0xb8]
mov eax, dword [ebp - 0xbc]
cmp dword [eax + 0x130], 0
je 0x4a0f92
test ecx, ecx
je 0x4a1160
push 0
push edi
call fcn.0049da40
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x4a1160
xor edi, edi
cmp dword [esi], edi
jle 0x4a1160
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
push 5
mov eax, dword [eax + edi*4]
push dword [eax]
call ebx
mov eax, dword [esi + 4]
mov eax, dword [eax + edi*4]
mov ecx, dword [eax + 0xa0]
test ecx, ecx
je 0x4a0fe4
mov eax, dword [eax + 0x88]
and al, 0x11
cmp al, 1
jne 0x4a0fe4
push 5
push ecx
call ebx
inc edi
cmp edi, dword [esi]
jl 0x4a0fb7
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
push 0x4ef64c
push ebx
call fcn.00493b70
add esp, 8
test eax, eax
je 0x4a1160
xor ecx, ecx
mov dword [ebp - 0xc0], ecx
cmp dword [esi], ecx
jle 0x4a1160
mov edx, dword [esi + 4]
mov eax, dword [edx]
cmp dword [eax], ebx
je 0x4a1048
inc ecx
add edx, 4
mov dword [ebp - 0xc0], ecx
cmp ecx, dword [esi]
jl 0x4a1023
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
cmp ecx, dword [esi]
jge 0x4a1160
mov eax, dword [ebp - 0xbc]
cmp dword [eax + 0x130], 0
je 0x4a10b4
cmp dword [ebp + 0xc], 0
jne 0x4a10b4
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov eax, dword [eax + ecx*4]
or dword [eax + 0x88], 2
mov eax, dword [esi + 4]
mov eax, dword [eax + ecx*4]
push dword [eax]
call edi
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc0]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x4a1160
push 0
push eax
call edi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
lea ebx, [ecx*4]
mov eax, dword [esi + 4]
push 0
mov eax, dword [eax + ebx]
mov ecx, dword [eax + 0x88]
je 0x4a1125
or ecx, 9
push edi
mov dword [eax + 0x88], ecx
call fcn.0049da40
mov eax, dword [esi + 4]
add esp, 8
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + eax]
push 0
push dword [eax]
call edi
mov eax, dword [esi + 4]
push 5
mov eax, dword [ebx + eax]
push dword [eax]
call edi
mov eax, dword [esi + 4]
mov eax, dword [eax + ebx]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x4a1160
push 5
push eax
call edi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
and ecx, 0xfffffff6
mov dword [eax + 0x88], ecx
mov eax, dword [esi + 4]
mov eax, dword [ebx + eax]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
push 0
mov eax, dword [eax + ebx]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x4a1157
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call fcn.0049da40
add esp, 8
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004e2538
mov esp, ebp
pop ebp
ret