Function at 0x4c1d10
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x204
mov eax, dword [0x6a0060]
xor eax, esp
mov dword [esp + 0x200], eax
cmp dword [0x6a1d00], 0
push ebp
push edi
mov edi, dword [esp + 0x210]
mov ebp, ecx
je 0x4c290b
cmp dword [ebp + 0xbc8], 0
jne 0x4c290b
cmp dword [0x6b0170], 0
je 0x4c290b
cmp dword [0x6a1d40], 7
jne 0x4c290b
push ebx
push 0x58
mov ecx, edi
call fcn.00513070
mov ebx, 1
cmp eax, ebx
jne 0x4c1d8b
mov ecx, dword [0x6a2500]
mov edx, dword [0x6b0170]
mov eax, dword [ecx]
mov eax, dword [eax + 0x64]
push edx
push ebx
call eax
cmp dword [0x6c0170], 0
mov dword [esp + 0x1c], 0
je 0x4c1da8
cmp dword [ebp + 0xbc4], ebx
jne 0x4c1da8
mov dword [esp + 0x1c], ebx
push 0x38
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c1dba
mov ebx, 4
push 0x1d
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c1dcd
and ebx, 0xfffffffe
or ebx, 2
push 0x2a
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c1de0
and ebx, 0xfffffffe
or ebx, 8
push esi
xor esi, esi
cmp dword [esp + 0x20], 0
je 0x4c1e01
mov ecx, dword [ebp + 0xbc4]
imul ecx, ecx, 0x29
add ecx, esi
add ecx, ecx
cmp dword [ebp + ecx*8 + 0x52c], 0
je 0x4c1e53
mov eax, dword [ebp + 0xbc4]
imul eax, eax, 0x29
add eax, esi
mov ecx, eax
add ecx, ecx
test dword [ebp + ecx*8 + 0x524], ebx
je 0x4c1e53
add eax, 0x53
add eax, eax
cmp dword [ebp + eax*8], 0
je 0x4c1e37
movzx edx, word [ebp + ecx*8 + 0x528]
push edx
mov ecx, edi
call fcn.00513010
jmp 0x4c1e47
movzx eax, word [ebp + ecx*8 + 0x528]
push eax
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c1e53
push esi
mov ecx, ebp
call fcn.004c06f0
inc esi
cmp esi, 0x29
jl 0x4c1de3
push 0x13
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c1f24
push 0x38
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c1f24
push 0
push 0x3880
mov ecx, 0x6dd108
call fcn.00537510
test eax, eax
je 0x4c1ea9
push 0x58e824
push 0x1d
push 0x6b2178
call fcn.004c6e60
add esp, 0xc
jmp 0x4c2909
mov ecx, dword [0x6a23f8]
cmp dword [ecx + 0x10], 0
jne 0x4c1ee3
cmp dword [0x6be024], 0
je 0x4c1ef1
push 0x283
mov ecx, 0x6b2178
call fcn.004c5c30
push eax
push 0x1d
push 0x6b2178
call fcn.004c6e60
mov ecx, dword [0x6a23f8]
add esp, 0xc
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0
call eax
jmp 0x4c2909
mov edx, dword [0x69a90c]
cmp byte [edx + 0x6afd58], 0
je 0x4c1f1b
push 0x5845d8
push 1
push 0x3aba
push 0x6af870
call fcn.00442850
add esp, 0x10
jmp 0x4c1f24
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
push 0xc7
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c1f55
mov ecx, dword [0x6a2318]
test ecx, ecx
je 0x4c2909
cmp dword [ecx + 0x10], 0
mov eax, dword [ecx]
mov edx, dword [eax + 8]
je 0x4c1f51
push 0
jmp 0x4c1f53
push 1
call edx
push 0x14
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c1fb0
push 0x38
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c1fb0
mov esi, dword [0x6a254c]
test esi, esi
je 0x4c2909
cmp dword [esi + 0x10], 0
mov ecx, esi
je 0x4c1f97
push 1
call fcn.00446b30
mov ecx, esi
call fcn.00446ad0
push 0
jmp 0x4c1fa7
push 0
call fcn.00446b30
mov ecx, esi
call fcn.00446a80
push 1
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x3f
mov ecx, edi
call fcn.00512fd0
push 0x41
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c1fea
push 0x8e6
mov ecx, 0x6b2178
call fcn.004c5c30
push eax
push 2
push 0x3ab5
push 0x6af870
call fcn.00442850
add esp, 0x10
push 0x57
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c2037
call fcn.0040c720
mov ecx, eax
call fcn.0050e110
test eax, eax
jne 0x4c2020
call fcn.0040c720
mov ecx, eax
call fcn.0050e120
mov ecx, dword [0x6a258c]
call fcn.0050e070
jmp 0x4c2037
call fcn.0040c720
mov ecx, eax
call fcn.0050e310
mov ecx, dword [0x6a258c]
call fcn.0050e040
push 0x10
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c207b
push 0x38
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c207b
mov eax, dword [0x6a1cec]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4c206c
mov ecx, dword [0x6a1cec]
push 0
push ecx
jmp 0x4c2075
mov edx, dword [0x6a1cec]
push 8
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x6b103c], 0
je 0x4c2909
push 0x22
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c20bc
push 0x1d
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c20bc
mov ecx, dword [0x6a24d4]
test ecx, ecx
je 0x4c20bc
mov eax, dword [ecx]
mov eax, dword [eax + 8]
xor edx, edx
cmp dword [ecx + 0x10], edx
sete dl
push edx
call eax
push 0x13
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c20f0
push 0x1d
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c20f0
mov ecx, dword [0x6a24d8]
test ecx, ecx
je 0x4c20f0
mov edx, dword [ecx]
mov edx, dword [edx + 8]
xor eax, eax
cmp dword [ecx + 0x10], eax
sete al
push eax
call edx
push 0x20
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c2123
push 0x1d
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c2123
mov ecx, dword [0x6a2510]
cmp dword [ecx + 0x10], 1
mov eax, dword [ecx]
mov edx, dword [eax + 8]
jne 0x4c211f
push 0
jmp 0x4c2121
push 1
call edx
push 0x3b
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c214d
push 0x38
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c214d
xor eax, eax
cmp dword [0x6db2e4], eax
sete al
mov dword [0x6db2e4], eax
push 0xe
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c2171
push 0x38
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c2171
mov ecx, 0x6af870
call fcn.0043f2b0
push 0x19
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c21a3
push 0x38
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c21a3
xor dword [ebp + 0xbd0], 1
mov eax, dword [ebp + 0xbd0]
push eax
mov ecx, 0x6a3aa0
call fcn.00423fc0
push 0x2e
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c21d6
push 0x38
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c21d6
cmp dword [0x6dd4d8], 4
mov ecx, 0x6dd4c0
jne 0x4c21cf
push 0
jmp 0x4c21d1
push 4
call fcn.0053fde0
push 0x1e
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c2218
push 0x38
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c2218
mov esi, dword [0x6a24b8]
test esi, esi
je 0x4c2218
mov edx, dword [esi]
mov edx, dword [edx + 8]
xor eax, eax
cmp dword [esi + 0x10], eax
mov ecx, esi
sete al
push eax
call edx
push 0x58e810
mov ecx, esi
call fcn.004796d0
push 0x1f
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c224c
push 0x38
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c224c
mov ecx, dword [0x6a2488]
test ecx, ecx
je 0x4c224c
mov eax, dword [ecx]
mov eax, dword [eax + 8]
xor edx, edx
cmp dword [ecx + 0x10], edx
sete dl
push edx
call eax
push 0x26
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c2539
push 0x38
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c2539
mov esi, dword [0x6a248c]
test esi, esi
je 0x4c2539
mov ecx, dword [0x58e804]
mov edx, dword [0x58e808]
movzx eax, word [0x58e80c]
mov dword [esp + 0x1d0], ecx
movzx ecx, byte [0x58e80e]
mov dword [esp + 0x1d4], edx
lea edx, [esp + 0x4c]
mov byte [esp + 0x1da], cl
push edx
mov ecx, esi
mov word [esp + 0x1e9], 0x800
mov dword [esp + 0x50], 2
mov word [esp + 0x1dc], ax
call fcn.00478540
mov eax, dword [0x58e7f8]
mov ecx, dword [0x58e7fc]
movzx edx, word [0x58e800]
mov dword [esp + 0x1d4], ecx
mov dword [esp + 0x1d0], eax
movzx eax, byte [0x58e802]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
mov word [esp + 0x1e9], 0x2001
mov dword [esp + 0x50], 4
mov word [esp + 0x1dc], dx
mov byte [esp + 0x1de], al
call fcn.00478540
mov edx, dword [0x58e7ec]
mov eax, dword [0x58e7f0]
movzx ecx, word [0x58e7f4]
mov dword [esp + 0x1d0], edx
movzx edx, byte [0x58e7f6]
mov dword [esp + 0x1d4], eax
lea eax, [esp + 0x4c]
mov word [esp + 0x1d8], cx
mov ebx, 6
push eax
mov ecx, esi
mov word [esp + 0x1e9], 0x1002
mov dword [esp + 0x50], ebx
mov byte [esp + 0x1de], dl
call fcn.00478540
mov ecx, dword [0x58e7e0]
mov edx, dword [0x58e7e4]
movzx eax, word [0x58e7e8]
mov dword [esp + 0x1d0], ecx
movzx ecx, byte [0x58e7ea]
mov dword [esp + 0x1d4], edx
lea edx, [esp + 0x4c]
mov byte [esp + 0x1da], cl
push edx
mov ecx, esi
mov word [esp + 0x1e9], 0x2003
mov dword [esp + 0x50], 8
mov word [esp + 0x1dc], ax
call fcn.00478540
mov eax, dword [0x58e7d4]
mov ecx, dword [0x58e7d8]
movzx edx, word [0x58e7dc]
mov dword [esp + 0x1d4], ecx
mov dword [esp + 0x1d0], eax
movzx eax, byte [0x58e7de]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
mov word [esp + 0x1e9], 0x2004
mov dword [esp + 0x50], 0xa
mov word [esp + 0x1dc], dx
mov byte [esp + 0x1de], al
call fcn.00478540
mov edx, dword [0x58e7c8]
movzx ecx, word [0x58e7d0]
mov eax, dword [0x58e7cc]
mov dword [esp + 0x1d0], edx
movzx edx, byte [0x58e7d2]
mov word [esp + 0x1e5], 0x405
mov dword [esp + 0x4c], 0xc
mov dword [esp + 0x1d4], eax
mov word [esp + 0x1d8], cx
mov byte [esp + 0x1da], dl
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.00478540
mov ecx, dword [0x58e7bc]
mov edx, dword [0x58e7c0]
movzx eax, word [0x58e7c4]
mov dword [esp + 0x1d0], ecx
movzx ecx, byte [0x58e7c6]
mov dword [esp + 0x1d4], edx
lea edx, [esp + 0x4c]
mov byte [esp + 0x1da], cl
push edx
mov ecx, esi
mov word [esp + 0x1e9], 0x1006
mov dword [esp + 0x50], 0xe
mov word [esp + 0x1dc], ax
call fcn.00478540
mov eax, dword [0x58e7b0]
mov ecx, dword [0x58e7b4]
movzx edx, word [0x58e7b8]
mov dword [esp + 0x1d4], ecx
mov dword [esp + 0x1d0], eax
movzx eax, byte [0x58e7ba]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
mov word [esp + 0x1e9], 0x2007
mov dword [esp + 0x50], 0x10
mov word [esp + 0x1dc], dx
mov byte [esp + 0x1de], al
call fcn.00478540
mov edx, dword [esi]
mov edx, dword [edx + 8]
xor eax, eax
cmp dword [esi + 0x10], eax
mov ecx, esi
sete al
push eax
call edx
mov ecx, esi
call fcn.00478a70
push 0x24
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c270d
push 0x38
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c270d
lea eax, [esp + 0x1ed]
push 0x58e7a4
push eax
mov byte [esp + 0x1f0], 0
call fcn.005654de
lea ecx, [esp + 0x206]
push 0x58e798
push ecx
call fcn.005654de
lea edx, [esp + 0x39]
push 0x58e790
push edx
mov byte [esp + 0x3c], 1
call fcn.005654de
lea eax, [esp + 0x52]
push 0x58e788
push eax
call fcn.005654de
mov esi, dword [0x6a2490]
add esp, 0x20
test esi, esi
je 0x4c270d
lea ecx, [esp + 0x1e8]
push ecx
mov ecx, esi
mov dword [esi + 0x23c], 1
call fcn.004774c0
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004774c0
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.004774c0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004774c0
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004774c0
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.004774c0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004774c0
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004774c0
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.004774c0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004774c0
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004774c0
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.004774c0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004774c0
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004774c0
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.004774c0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004774c0
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004774c0
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.004774c0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004774c0
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004774c0
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.004774c0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004774c0
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004774c0
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.004774c0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004774c0
mov ecx, esi
call fcn.004775d0
mov edx, dword [esi]
mov edx, dword [edx + 8]
xor eax, eax
cmp dword [esi + 0x10], eax
mov ecx, esi
sete al
push eax
call edx
push 0x23
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c2741
push 0x38
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c2741
mov ecx, dword [0x6a2494]
test ecx, ecx
je 0x4c2741
mov eax, dword [ecx]
mov eax, dword [eax + 8]
xor edx, edx
cmp dword [ecx + 0x10], edx
sete dl
push edx
call eax
push 0x22
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c2774
push 0x38
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c2774
mov ecx, dword [0x6a22d8]
cmp dword [ecx + 0x10], 0
mov edx, dword [ecx]
mov eax, dword [edx + 8]
jne 0x4c2770
push 1
jmp 0x4c2772
push 0
call eax
push 0x25
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c278a
push 0x38
mov ecx, edi
call fcn.00513070
push 0x20
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c27bd
push 0x38
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c27bd
mov ecx, dword [0x6a250c]
cmp dword [ecx + 0x10], 0
mov edx, dword [ecx]
mov eax, dword [edx + 8]
jne 0x4c27b9
push 1
jmp 0x4c27bb
push 0
call eax
cmp dword [esp + 0x20], 1
je 0x4c2909
push 0x17
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c280a
push 0x38
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c280a
mov ecx, dword [0x6b017c]
mov word [esp + 0x11], 0x7f05
mov edx, dword [ecx + 0x129]
push 9
lea eax, [esp + 0x14]
push eax
mov ecx, 0x6c0608
mov dword [esp + 0x1b], edx
call fcn.00513fe0
push 0x31
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c283e
push 0x1d
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c283e
mov ecx, dword [0x6a24c0]
test ecx, ecx
je 0x4c283e
mov edx, dword [ecx]
mov edx, dword [edx + 8]
xor eax, eax
cmp dword [ecx + 0x10], eax
sete al
push eax
call edx
push 0x15
mov ecx, edi
call fcn.00512fd0
mov bl, 0x3c
test eax, eax
je 0x4c2885
push 0x1d
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c2885
mov eax, dword [0x6b0170]
push 0xd
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x6c0608
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 0x29
mov dword [esp + 0x1b], eax
mov dword [esp + 0x21], 2
call fcn.00513fe0
push 0x10
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c28c3
push 0x1d
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c28c3
mov edx, dword [0x6b0170]
push 9
lea eax, [esp + 0x14]
push eax
mov ecx, 0x6c0608
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 1
mov dword [esp + 0x1b], edx
call fcn.00513fe0
push 0x1e
mov ecx, edi
call fcn.00512fd0
test eax, eax
je 0x4c2909
push 0x1d
mov ecx, edi
call fcn.00513070
test eax, eax
je 0x4c2909
mov ecx, dword [0x6b0170]
push 0xd
lea edx, [esp + 0x14]
mov dword [esp + 0x17], ecx
push edx
mov ecx, 0x6c0608
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 0x29
mov dword [esp + 0x21], 1
call fcn.00513fe0
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
pop edi
pop ebp
xor ecx, esp
call fcn.00564fc9
add esp, 0x204
ret 4