Function at 0x4c8f50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x358
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x258]
mov ebp, 1
xor edi, edi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], edi
call fcn.0051ec40
lea ecx, [esp + 0x148]
push ecx
call fcn.0051ec40
mov esi, dword [esp + 0x36c]
cmp dword [esi + 0x2c4], edi
mov dword [esp + 0x2c], ebp
je 0x4c8fa6
mov edx, dword [esi + 0x2c0]
mov dword [esp + 0x1c], edx
jmp 0x4c8fb3
mov eax, dword [esi + 0x60]
push eax
call fcn.004aad80
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x1b0]
sub eax, 2
mov ecx, dword [esi + 0x2c4]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
je 0x4c9004
sub eax, ebp
je 0x4c8fd6
mov dword [esp + 0x18], edi
jmp 0x4c9022
mov eax, dword [esi + 0x1b4]
lea edx, [esp + 0x148]
push edx
push eax
call fcn.0048ec60
mov ecx, dword [esi + 0x1b4]
push ecx
call fcn.0048f290
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], 2
jmp 0x4c9022
mov edx, dword [esi + 0x1b4]
push edx
call fcn.0040cc50
push eax
lea eax, [esp + 0x25c]
push eax
call fcn.0051f570
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x374]
cmp eax, 3
mov ecx, dword [esi + 0x298]
mov edx, dword [esi + 0x29c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], edx
je 0x4c9052
cmp eax, 2
je 0x4c904c
cmp eax, 6
jne 0x4c9056
mov dword [esp + 0x20], ebp
jmp 0x4c9056
mov dword [esp + 0x1c], ebp
mov ebx, dword [esp + 0x370]
cmp ebx, edi
mov ecx, 0x8000
je 0x4c92e2
mov eax, dword [ebx + 4]
test eax, 0x200
je 0x4c907a
mov dword [esp + 0x1c], ebp
jmp 0x4c9087
test dword [ebx + 8], 0x200
je 0x4c9087
mov dword [esp + 0x1c], edi
test eax, 0x400
je 0x4c9094
mov dword [esp + 0x20], ebp
jmp 0x4c90a1
test dword [ebx + 8], 0x400
je 0x4c90a1
mov dword [esp + 0x20], edi
test eax, 0x800
je 0x4c90ae
mov dword [esp + 0x24], ebp
jmp 0x4c90bb
test dword [ebx + 8], 0x800
je 0x4c90bb
mov dword [esp + 0x24], edi
test eax, 0x1000
je 0x4c90cb
mov byte [esi + 0x177], 1
jmp 0x4c90db
test dword [ebx + 8], 0x1000
je 0x4c90df
mov byte [esi + 0x177], 0
mov dword [esp + 0x10], ebp
mov eax, 0x2000
test dword [ebx + 4], eax
je 0x4c90f2
mov byte [esi + 0x174], 1
jmp 0x4c90fe
test dword [ebx + 8], eax
je 0x4c9102
mov byte [esi + 0x174], 0
mov dword [esp + 0x10], ebp
mov eax, 0x4000
test dword [ebx + 4], eax
je 0x4c9115
mov byte [esi + 0x175], 1
jmp 0x4c9121
test dword [ebx + 8], eax
je 0x4c9125
mov byte [esi + 0x175], 0
mov dword [esp + 0x10], ebp
test dword [ebx + 4], ecx
je 0x4c9133
mov byte [esi + 0x176], 1
jmp 0x4c913f
test dword [ebx + 8], ecx
je 0x4c9143
mov byte [esi + 0x176], 0
mov dword [esp + 0x10], ebp
mov eax, 0x10000
test dword [ebx + 4], eax
je 0x4c9156
mov byte [esi + 0x178], 1
jmp 0x4c9162
test dword [ebx + 8], eax
je 0x4c9166
mov byte [esi + 0x178], 0
mov dword [esp + 0x10], ebp
mov eax, 0x200000
test dword [ebx + 4], eax
je 0x4c9185
cmp dword [esi + 0x2c8], ebp
je 0x4c91a2
mov eax, dword [esi + 0x60]
push ebp
mov dword [esi + 0x2c8], ebp
push eax
jmp 0x4c919d
test dword [ebx + 8], eax
je 0x4c91a2
cmp dword [esi + 0x2c8], edi
je 0x4c91a2
mov ecx, dword [esi + 0x60]
push edi
mov dword [esi + 0x2c8], edi
push ecx
call fcn.004ac460
cmp dword [ebx + 0x84], edi
je 0x4c91f0
lea edx, [esp + 0x38]
push edx
call fcn.0051ec40
movsx eax, byte [esi + 0x177]
push ebx
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00405c10
mov edx, dword [esp + 0x40]
mov eax, dword [esi + 0x17c]
push edx
push eax
call fcn.0051e5f0
lea ecx, [esp + 0x38]
push ecx
mov dword [esi + 0x17c], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], ebp
call fcn.00522920
mov eax, dword [ebx + 0x24]
cmp eax, edi
je 0x4c9254
push eax
call fcn.004978b0
mov edi, eax
test edi, edi
jne 0x4c9215
mov edx, dword [0x58b35c]
push edx
call fcn.00497720
mov edi, eax
test edi, edi
je 0x4c924e
mov eax, dword [edi]
mov ecx, dword [esi + 0xac]
push eax
push ecx
call fcn.0051e5f0
cmp dword [esi + 0xa0], 0
mov dword [esi + 0xac], eax
je 0x4c924e
push 0
push edi
call fcn.004976a0
mov edx, dword [esi + 0xa0]
push eax
push 0x14e
push edx
call dword [0x58b054]
mov dword [esp + 0x10], ebp
xor edi, edi
mov eax, dword [ebx + 0x6c]
cmp eax, 0xffffffff
je 0x4c9277
cmp dword [ebx + 0x68], edi
mov dword [esp + 0x34], eax
jne 0x4c926f
push eax
call fcn.004c09a0
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
mov eax, dword [ebx + 0x68]
cmp eax, edi
je 0x4c9291
xor ecx, ecx
cmp eax, edi
setg cl
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], ecx
mov eax, dword [ebx + 0x18]
cmp eax, edi
je 0x4c92ac
push eax
lea edx, [esp + 0x25c]
push edx
call fcn.0051f570
mov dword [esp + 0x18], ebp
jmp 0x4c92de
mov eax, dword [ebx + 0x34]
cmp eax, edi
je 0x4c92d2
push eax
lea eax, [esp + 0x14c]
push eax
call fcn.0051f570
mov ecx, dword [ebx + 0x58]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], 2
jmp 0x4c92de
test dword [ebx], 0x400
je 0x4c92e2
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebp
mov edx, dword [esi + 0x17c]
mov eax, dword [esi + 0x68]
movsx edi, byte [0x57e6d1]
push edx
push eax
mov dword [esi + 0x1f4], ebp
call fcn.004a79e0
mov eax, edi
sub eax, 0
mov dword [esi + 0x1f4], 0
je 0x4c9333
sub eax, 2
je 0x4c932a
mov ecx, dword [esi + 0x68]
push 0xffffffffffffffff
push 0
push 0xb1
push ecx
call dword [0x58b054]
jmp 0x4c9333
mov edx, dword [esi + 0x68]
push edx
call fcn.004ad210
cmp dword [esi + 0x2c8], 2
jne 0x4c934f
mov eax, dword [esi + 0x17c]
movzx ecx, byte [eax]
mov edx, dword [esi + 0x60]
push ecx
push edx
call fcn.004ac460
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
push 0
push eax
push ecx
push esi
call fcn.004e87b0
mov eax, dword [ebx + 0x70]
test eax, eax
mov ecx, dword [esi + 0x350]
je 0x4c938e
mov ecx, dword [0x57e5f8]
cmp eax, ecx
jge 0x4c937a
mov eax, ecx
mov ecx, dword [0x57e5fc]
cmp eax, ecx
jle 0x4c9386
mov eax, ecx
cmp eax, ebp
jge 0x4c938c
mov eax, ebp
mov ecx, eax
mov eax, dword [ebx]
test eax, 0x80000
je 0x4c939c
push ecx
push 0
jmp 0x4c93a5
test eax, 0x100000
je 0x4c93ab
push ecx
push ebp
push esi
call fcn.004f2720
push esi
call fcn.004c1ff0
push esi
call fcn.004be8e0
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push 0
push edi
push edx
push eax
push esi
call fcn.004bf480
mov ecx, dword [esi + 0x60]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4c93e8
mov edx, dword [esi + 0x60]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x4c9449
mov eax, dword [esi + 0x60]
push eax
call fcn.004ab0b0
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x4c9435
add eax, 0xffffffff
cmp eax, 3
ja case.default.0x4c9404
jmp dword [eax*4 + 0x4c955c]
mov edi, ebp
jmp case.default.0x4c9404
mov edi, 5
jmp case.default.0x4c9404
mov edi, 6
mov ecx, dword [esi + 0x2e0]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
test edi, edi
je 0x4c9449
push edi
push esi
call fcn.004f3b10
jmp 0x4c9449
cmp dword [esp + 0x30], 0
push esi
je 0x4c9444
call fcn.004c3570
jmp 0x4c9449
call fcn.004c35c0
mov eax, dword [ebx + 0x20]
xor edi, edi
xor ebp, ebp
test eax, eax
je 0x4c9470
mov edx, dword [0x58b080]
push eax
push edx
call fcn.00403330
mov edi, eax
test edi, edi
je 0x4c9470
test dword [edi + 8], 0x8000
jne 0x4c94e1
mov eax, dword [esp + 0x18]
sub eax, 1
je 0x4c94a9
sub eax, 1
je 0x4c948d
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0050dc10
mov ebp, eax
jmp 0x4c94e1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x150]
push ecx
push edx
push eax
push esi
call fcn.0050ddc0
mov ebp, eax
jmp 0x4c94e1
lea ecx, [esp + 0x38]
push ecx
call fcn.0051ec40
mov edx, dword [esp + 0x260]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.005219a0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
push ecx
push edx
push esi
call fcn.0050dc60
mov ebp, eax
lea eax, [esp + 0x38]
push eax
call fcn.00522920
test edi, edi
je 0x4c94ec
call fcn.004c8720
jmp 0x4c9523
test dword [ebx], 0x400000
je 0x4c94fc
push esi
call fcn.004c7ba0
jmp 0x4c9523
test ebp, ebp
je 0x4c950b
mov ecx, dword [esp + 0x14]
push 0
push 1
push ecx
jmp 0x4c951b
cmp dword [esp + 0x10], 0
je 0x4c9523
mov edx, dword [esp + 0x14]
push 0
push 1
push edx
push 1
push esi
call fcn.0050d710
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x4c9533
push 1
push eax
push esi
call fcn.004c1400
lea eax, [esp + 0x148]
push eax
call fcn.00522920
lea ecx, [esp + 0x258]
push ecx
call fcn.00522920
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x358
ret 0xc