Function at 0x4c5c50
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x214
mov eax, dword [0x6e2f0c]
xor eax, esp
mov dword [esp + 0x210], eax
cmp dword [0x6e4a40], 0
push ebp
push edi
mov edi, dword [esp + 0x220]
mov ebp, ecx
je 0x4c695b
cmp dword [ebp + 0xb88], 0
jne 0x4c695b
cmp dword [0x6f3908], 0
je 0x4c695b
cmp dword [0x6e5388], 7
jne 0x4c695b
push ebx
push 0x58
mov ecx, edi
call fcn.00531750
mov ebx, 1
cmp eax, ebx
jne 0x4c5ccb
mov ecx, dword [0x6e5ca8]
mov edx, dword [0x6f3908]
mov eax, dword [ecx]
mov eax, dword [eax + 0x64]
push edx
push ebx
call eax
cmp dword [0x704bb8], 0
mov dword [esp + 0xc], 0
je 0x4c5ce8
cmp dword [ebp + 0xb84], ebx
jne 0x4c5ce8
mov dword [esp + 0xc], ebx
push 0x38
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c5cfa
mov ebx, 4
push 0x1d
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c5d0d
and ebx, 0xfffffffe
or ebx, 2
push 0x2a
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c5d20
and ebx, 0xfffffffe
or ebx, 8
push esi
xor esi, esi
cmp dword [esp + 0x10], 0
je 0x4c5d42
mov eax, dword [ebp + 0xb84]
lea ecx, [eax + eax*4]
lea edx, [esi + ecx*8]
add edx, edx
cmp dword [ebp + edx*8 + 0x50c], 0
je 0x4c5d95
mov eax, dword [ebp + 0xb84]
lea eax, [eax + eax*4]
lea eax, [esi + eax*8]
mov ecx, eax
add ecx, ecx
test dword [ebp + ecx*8 + 0x504], ebx
je 0x4c5d95
add eax, 0x51
add eax, eax
cmp dword [ebp + eax*8], 0
je 0x4c5d79
movzx edx, word [ebp + ecx*8 + 0x508]
push edx
mov ecx, edi
call fcn.005316f0
jmp 0x4c5d89
movzx eax, word [ebp + ecx*8 + 0x508]
push eax
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c5d95
push esi
mov ecx, ebp
call fcn.004c45a0
inc esi
cmp esi, 0x28
jl 0x4c5d23
push 0x13
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c5e66
push 0x38
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c5e66
push 0
push 0x3880
mov ecx, 0x721b28
call fcn.0055df30
test eax, eax
je 0x4c5deb
push 0x5c5744
push 0x1d
push 0x6f58c8
call fcn.004cb0a0
add esp, 0xc
jmp 0x4c6959
mov ecx, dword [0x6e5ba0]
cmp dword [ecx + 0x10], 0
jne 0x4c5e25
cmp dword [0x6ff834], 0
je 0x4c5e33
push 0x283
mov ecx, 0x6f58c8
call fcn.004c9d30
push eax
push 0x1d
push 0x6f58c8
call fcn.004cb0a0
mov ecx, dword [0x6e5ba0]
add esp, 0xc
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0
call eax
jmp 0x4c6959
mov edx, dword [0x6dd7e4]
cmp byte [edx + 0x6f34f0], 0
je 0x4c5e5d
push 0x5bb380
push 1
push 0x3ab7
push 0x6f3010
call fcn.0043b800
add esp, 0x10
jmp 0x4c5e66
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 1
call edx
push 0xc7
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c5e97
mov ecx, dword [0x6e5ac0]
test ecx, ecx
je 0x4c6959
cmp dword [ecx + 0x10], 0
mov eax, dword [ecx]
mov edx, dword [eax + 8]
je 0x4c5e93
push 0
jmp 0x4c5e95
push 1
call edx
push 0x14
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c5ef2
push 0x38
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c5ef2
mov esi, dword [0x6e5cf4]
test esi, esi
je 0x4c6959
cmp dword [esi + 0x10], 0
mov ecx, esi
je 0x4c5ed9
push 1
call fcn.00440390
mov ecx, esi
call fcn.004402f0
push 0
jmp 0x4c5ee9
push 0
call fcn.00440390
mov ecx, esi
call fcn.00440280
push 1
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x3f
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c5f5a
cmp dword [0x6dd7e4], 2
je 0x4c6959
call fcn.0050d820
mov ecx, eax
call fcn.00517b60
test eax, eax
je 0x4c5f2f
call fcn.0050d820
mov ecx, eax
call fcn.00517b80
push 0x8a3
jmp 0x4c5f40
call fcn.0050d820
mov ecx, eax
call fcn.005179f0
push 0x8a2
mov ecx, 0x6f58c8
call fcn.004c9d30
push eax
push 0x1d
push 0x6f58c8
call fcn.004cb0a0
add esp, 0xc
push 0xf
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c6008
mov ecx, 0x6f3910
call fcn.004975d0
mov esi, eax
test esi, esi
jne 0x4c5f9f
push 0x8b2
mov ecx, 0x6f58c8
call fcn.004c9d30
push eax
push 0x1d
push 0x6f58c8
call fcn.004cb0a0
add esp, 0xc
jmp 0x4c6959
cmp byte [esi + 0x128], 1
jne 0x4c6959
mov edx, dword [0x705010]
mov ecx, dword [0x6e5d24]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
push edx
mov edx, dword [0x70500c]
push edx
call eax
mov ecx, dword [esi + 0x129]
push ecx
add esi, 0x131
push esi
lea edx, [esp + 0x1e8]
push str._s__d_
push edx
call fcn.0058dd5f
mov ecx, dword [0x6e5d24]
add esp, 0x10
lea eax, [esp + 0x1e0]
push eax
call fcn.0050a880
mov ecx, dword [0x6e5d24]
call fcn.0050a8c0
push 0x41
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c6039
push 0x8e6
mov ecx, 0x6f58c8
call fcn.004c9d30
push eax
push 2
push 0x3ab4
push 0x6f3010
call fcn.0043b800
add esp, 0x10
push 0x57
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c6086
call fcn.004036a0
mov ecx, eax
call fcn.0052c200
test eax, eax
jne 0x4c606f
call fcn.004036a0
mov ecx, eax
call fcn.0052c220
mov ecx, dword [0x6e5d34]
call fcn.0052c0f0
jmp 0x4c6086
call fcn.004036a0
mov ecx, eax
call fcn.0052c4b0
mov ecx, dword [0x6e5d34]
call fcn.0052c0a0
push 0x10
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c60ca
push 0x38
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c60ca
mov ecx, dword [0x6e4500]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4c60bc
mov edx, dword [0x6e4500]
push 0
push edx
jmp 0x4c60c4
mov eax, dword [0x6e4500]
push 8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x6f47cc], 0
je 0x4c6959
push 0x22
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c610b
push 0x1d
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c610b
mov ecx, dword [0x6e5c7c]
test ecx, ecx
je 0x4c610b
mov edx, dword [ecx]
mov edx, dword [edx + 8]
xor eax, eax
cmp dword [ecx + 0x10], eax
sete al
push eax
call edx
push 0x13
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c613f
push 0x1d
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c613f
mov ecx, dword [0x6e5c80]
test ecx, ecx
je 0x4c613f
mov eax, dword [ecx]
mov eax, dword [eax + 8]
xor edx, edx
cmp dword [ecx + 0x10], edx
sete dl
push edx
call eax
push 0x20
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c6172
push 0x1d
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c6172
mov ecx, dword [0x6e5cb8]
cmp dword [ecx + 0x10], 1
mov edx, dword [ecx]
mov eax, dword [edx + 8]
jne 0x4c616e
push 0
jmp 0x4c6170
push 1
call eax
push 0x3b
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c619d
push 0x38
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c619d
xor ecx, ecx
cmp dword [0x71fd2c], ecx
sete cl
mov dword [0x71fd2c], ecx
push 0xe
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c61c1
push 0x38
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c61c1
mov ecx, 0x6f3010
call fcn.00438370
push 0x19
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c61f3
push 0x38
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c61f3
xor dword [ebp + 0xb90], 1
mov eax, dword [ebp + 0xb90]
push eax
mov ecx, 0x6e7240
call fcn.0041b9a0
push 0x2e
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c6226
push 0x38
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c6226
cmp dword [0x721ed0], 4
mov ecx, 0x721eb8
jne 0x4c621f
push 0
jmp 0x4c6221
push 4
call fcn.00561030
push 0x1e
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c6268
push 0x38
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c6268
mov esi, dword [0x6e5c60]
test esi, esi
je 0x4c6268
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 0x5c5728
mov ecx, esi
call fcn.004770d0
push 0x1f
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c629c
push 0x38
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c629c
mov ecx, dword [0x6e5c30]
test ecx, ecx
je 0x4c629c
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.005316b0
test eax, eax
je 0x4c6589
push 0x38
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c6589
mov esi, dword [0x6e5c34]
test esi, esi
je 0x4c6589
mov ecx, dword [0x5c571c]
mov edx, dword [0x5c5720]
movzx eax, word [0x5c5724]
mov dword [esp + 0x1c8], ecx
movzx ecx, byte [0x5c5726]
mov dword [esp + 0x1cc], edx
lea edx, [esp + 0x44]
mov byte [esp + 0x1d2], cl
push edx
mov ecx, esi
mov word [esp + 0x1e1], 0x800
mov dword [esp + 0x48], 2
mov word [esp + 0x1d4], ax
call fcn.00475ec0
mov eax, dword [0x5c5710]
mov ecx, dword [0x5c5714]
movzx edx, word [0x5c5718]
mov dword [esp + 0x1cc], ecx
mov dword [esp + 0x1c8], eax
movzx eax, byte [0x5c571a]
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
mov word [esp + 0x1e1], 0x2001
mov dword [esp + 0x48], 4
mov word [esp + 0x1d4], dx
mov byte [esp + 0x1d6], al
call fcn.00475ec0
mov edx, dword [0x5c5704]
mov eax, dword [0x5c5708]
movzx ecx, word [0x5c570c]
mov dword [esp + 0x1c8], edx
movzx edx, byte [0x5c570e]
mov dword [esp + 0x1cc], eax
lea eax, [esp + 0x44]
mov word [esp + 0x1d0], cx
mov ebx, 6
push eax
mov ecx, esi
mov word [esp + 0x1e1], 0x1002
mov dword [esp + 0x48], ebx
mov byte [esp + 0x1d6], dl
call fcn.00475ec0
mov ecx, dword [0x5c56f8]
mov edx, dword [0x5c56fc]
movzx eax, word [0x5c5700]
mov dword [esp + 0x1c8], ecx
movzx ecx, byte [0x5c5702]
mov dword [esp + 0x1cc], edx
lea edx, [esp + 0x44]
mov byte [esp + 0x1d2], cl
push edx
mov ecx, esi
mov word [esp + 0x1e1], 0x2003
mov dword [esp + 0x48], 8
mov word [esp + 0x1d4], ax
call fcn.00475ec0
mov eax, dword [0x5c56ec]
mov ecx, dword [0x5c56f0]
movzx edx, word [0x5c56f4]
mov dword [esp + 0x1cc], ecx
mov dword [esp + 0x1c8], eax
movzx eax, byte [0x5c56f6]
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
mov word [esp + 0x1e1], 0x2004
mov dword [esp + 0x48], 0xa
mov word [esp + 0x1d4], dx
mov byte [esp + 0x1d6], al
call fcn.00475ec0
mov edx, dword [0x5c56e0]
movzx ecx, word [0x5c56e8]
mov eax, dword [0x5c56e4]
mov dword [esp + 0x1c8], edx
movzx edx, byte [0x5c56ea]
mov word [esp + 0x1dd], 0x405
mov dword [esp + 0x44], 0xc
mov dword [esp + 0x1cc], eax
mov word [esp + 0x1d0], cx
mov byte [esp + 0x1d2], dl
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.00475ec0
mov ecx, dword [0x5c56d4]
mov edx, dword [0x5c56d8]
movzx eax, word [0x5c56dc]
mov dword [esp + 0x1c8], ecx
movzx ecx, byte [0x5c56de]
mov dword [esp + 0x1cc], edx
lea edx, [esp + 0x44]
mov byte [esp + 0x1d2], cl
push edx
mov ecx, esi
mov word [esp + 0x1e1], 0x1006
mov dword [esp + 0x48], 0xe
mov word [esp + 0x1d4], ax
call fcn.00475ec0
mov eax, dword [0x5c56c8]
mov ecx, dword [0x5c56cc]
movzx edx, word [0x5c56d0]
mov dword [esp + 0x1cc], ecx
mov dword [esp + 0x1c8], eax
movzx eax, byte [0x5c56d2]
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
mov word [esp + 0x1e1], 0x2007
mov dword [esp + 0x48], 0x10
mov word [esp + 0x1d4], dx
mov byte [esp + 0x1d6], al
call fcn.00475ec0
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.00476470
push 0x24
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c675d
push 0x38
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c675d
lea eax, [esp + 0x1e5]
push 0x5c56bc
push eax
mov byte [esp + 0x1e8], 0
call fcn.0058dd5f
lea ecx, [esp + 0x1fe]
push 0x5c56b0
push ecx
call fcn.0058dd5f
lea edx, [esp + 0x31]
push 0x5c56a8
push edx
mov byte [esp + 0x34], 1
call fcn.0058dd5f
lea eax, [esp + 0x4a]
push 0x5c56a0
push eax
call fcn.0058dd5f
mov esi, dword [0x6e5c38]
add esp, 0x20
test esi, esi
je 0x4c675d
lea ecx, [esp + 0x1e0]
push ecx
mov ecx, esi
mov dword [esi + 0x23c], 1
call fcn.00474d40
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00474d40
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00474d40
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00474d40
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00474d40
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00474d40
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00474d40
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00474d40
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00474d40
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00474d40
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00474d40
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00474d40
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00474d40
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00474d40
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00474d40
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00474d40
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00474d40
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00474d40
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00474d40
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00474d40
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00474d40
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00474d40
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00474d40
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00474d40
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00474d40
mov ecx, esi
call fcn.00474e50
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.005316b0
test eax, eax
je 0x4c6791
push 0x38
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c6791
mov ecx, dword [0x6e5c3c]
test ecx, ecx
je 0x4c6791
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.005316b0
test eax, eax
je 0x4c67c4
push 0x38
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c67c4
mov ecx, dword [0x6e5a80]
cmp dword [ecx + 0x10], 0
mov edx, dword [ecx]
mov eax, dword [edx + 8]
jne 0x4c67c0
push 1
jmp 0x4c67c2
push 0
call eax
push 0x25
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c67da
push 0x38
mov ecx, edi
call fcn.00531750
push 0x20
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c680d
push 0x38
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c680d
mov ecx, dword [0x6e5cb4]
cmp dword [ecx + 0x10], 0
mov edx, dword [ecx]
mov eax, dword [edx + 8]
jne 0x4c6809
push 1
jmp 0x4c680b
push 0
call eax
cmp dword [esp + 0x10], 1
je 0x4c6959
push 0x17
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c685a
push 0x38
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c685a
mov ecx, dword [0x6f3914]
mov word [esp + 0x11], 0x7f05
mov edx, dword [ecx + 0x129]
push 7
lea eax, [esp + 0x14]
push eax
mov ecx, 0x705050
mov dword [esp + 0x1b], edx
call fcn.00532770
push 0x31
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c688e
push 0x1d
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c688e
mov ecx, dword [0x6e5c68]
test ecx, ecx
je 0x4c688e
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.005316b0
mov bl, 0x3c
test eax, eax
je 0x4c68d5
push 0x1d
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c68d5
mov eax, dword [0x6f3908]
push 0xb
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x705050
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 0x29
mov dword [esp + 0x1b], eax
mov dword [esp + 0x1f], 2
call fcn.00532770
push 0x10
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c6913
push 0x1d
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c6913
mov edx, dword [0x6f3908]
push 7
lea eax, [esp + 0x14]
push eax
mov ecx, 0x705050
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 1
mov dword [esp + 0x1b], edx
call fcn.00532770
push 0x1e
mov ecx, edi
call fcn.005316b0
test eax, eax
je 0x4c6959
push 0x1d
mov ecx, edi
call fcn.00531750
test eax, eax
je 0x4c6959
mov ecx, dword [0x6f3908]
push 0xb
lea edx, [esp + 0x14]
mov dword [esp + 0x17], ecx
push edx
mov ecx, 0x705050
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], 0x29
mov dword [esp + 0x1f], 1
call fcn.00532770
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
pop edi
pop ebp
xor ecx, esp
call fcn.0058d3fe
add esp, 0x214
ret 4