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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x140
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x14]
mov dword [esp + 0x5c], 0x4c60d0
mov dword [esp + 0x60], 0x51cf90
mov dword [esp + 0x64], ebp
mov dword [esp + 0x6c], esp
mov dword [esp + 0x68], 0x4c6a00
lea eax, [esp + 0x44]
push eax
call fcn.004c7670
add esp, 4
test esi, esi
jne 0x4c6974
xor ecx, ecx
xor edx, edx
call fcn.004c7510
mov esi, dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.004c58b0
add esp, 4
mov dword [esp + 0x48], 0xffffffff
push esi
call fcn.004c55e0
add esp, 4
mov byte [esp + 0x13], al
mov al, byte [esp + 0x13]
cmp al, 1
jne 0x4c69c8
mov edi, dword [esp + 0x14]
add edi, 0xffffffd0
mov eax, dword [esp + 0x14]
mov esi, dword [eax - 0x24]
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 0x28]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx - 0x18]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx - 0x10]
not edx
jmp 0x4c69d6
call fcn.004c8030
mov esi, eax
xor edi, edi
call fcn.004c7f50
mov dword [esp + 0x7c], esi
mov dword [esp + 0x114], edi
mov dword [esp + 0x20], edx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x48], 1
push eax
call fcn.004c8010
add esp, 4
nop dword [eax]
mov eax, dword [esp + 0x48]
cmp eax, 0x17
jae case.default.0x4c6a0f
jmp dword [eax*4 + 0x50af00]
mov eax, dword [esp + 0x50]
push dword [esp + 0x4c]
call fcn.004c58b0
add esp, 4
mov al, byte [esp + 0x13]
cmp al, 1
jne 0x4c74e2
mov eax, dword [esp + 0xb0]
add eax, 1
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xb0]
movzx edx, byte [eax]
mov dword [esp + 0x48], 2
lea ecx, [esp + 0x78]
call fcn.004c7530
mov eax, dword [esp + 0x78]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xb4]
movzx eax, byte [eax]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
cmp eax, 0xff
je 0x4c74c7
xor ecx, ecx
mov eax, dword [esp + 0xb4]
xor edx, edx
nop
movzx ebx, byte [eax + 1]
mov esi, ebx
and esi, 0x7f
shl esi, cl
or esi, edx
add eax, 1
mov dword [esp + 8], esi
add ecx, 7
mov dword [esp + 4], eax
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
test bl, bl
js 0x4c6a90
mov eax, dword [esp + 4]
add eax, 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x48], 3
call fcn.004cfd00
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xb8]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0
je 0x4c74d0
mov eax, dword [esp + 0x24]
add eax, 0x30
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x48], 4
push eax
call fcn.004c55e0
add esp, 4
mov byte [esp + 0x29], al
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x24]
mov al, byte [esp + 0x29]
cmp edx, ecx
je 0x4c6c10
test al, 1
je 0x4c6c10
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x48], 5
push eax
call fcn.004c55d0
add esp, 4
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], edx
mov eax, 0x432b2b01
xor eax, dword [esp + 0x108]
mov ecx, 0x434c4e47
xor ecx, dword [esp + 0x10c]
or ecx, eax
jne 0x4c7069
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x2c]
jmp 0x4c7070
jmp case.0x4c6a0f.3
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x98]
jmp 0x4c6be7
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x130]
jmp 0x4c6be7
jmp case.0x4c6a0f.3
jmp case.0x4c6a0f.3
jmp case.0x4c6a0f.3
jmp case.0x4c6a0f.3
jmp case.0x4c6a0f.3
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
jmp 0x4c6bf0
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x9c]
jmp 0x4c6be7
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
lea ecx, [esp + 0xc]
call fcn.004c9f20
mov dword [esp + 0x134], esi
mov dword [esp + 0x138], edi
mov dword [esp + 0x48], 0x17
call fcn.004c5990
jmp 0x4c749e
mov eax, dword [esp + 0x40]
and eax, 0xf
mov dword [esp + 0xd8], eax
mov eax, dword [0x50b120]
add eax, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
add eax, dword [esp + 4]
mov ecx, dword [esp + 8]
add eax, ecx
add eax, 1
mov dword [esp + 0x124], eax
mov eax, dword [esp + 0x20]
add eax, dword [esp + 4]
mov ecx, dword [esp + 8]
add eax, ecx
add eax, 1
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x20]
add eax, dword [esp + 4]
mov ecx, dword [esp + 8]
add eax, ecx
add eax, 1
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0xd8]
cmp al, 2
je 0x4c6dba
test al, al
jne 0x4c6ee9
lea edx, [esp + 0x1c]
lea esi, [esp + 0x18]
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x124]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], edx
xor ecx, ecx
xor edx, edx
nop word cs:[eax + eax]
nop
lea esi, [eax + 1]
mov dword [esp + 0xf0], esi
movzx ebx, byte [eax]
mov eax, ebx
and eax, 0x7f
shl eax, cl
or eax, edx
mov dword [esp + 0xa0], eax
add ecx, 7
mov eax, dword [esp + 0xf0]
mov edx, dword [esp + 0xa0]
test bl, bl
js 0x4c6cc0
cmp dword [esp + 0xa0], 0
mov eax, dword [esp + 0x9c]
je 0x4c74d9
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0xe4]
mov ecx, dword [esp + 0xa0]
shl ecx, 2
mov edx, dword [esp + 8]
sub edx, ecx
mov ecx, dword [esp + 4]
add ecx, edx
add ecx, 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x48], 0xf
movzx edx, al
lea ecx, [esp + 0x1c]
call fcn.004c7530
mov dword [esp + 0xf4], eax
mov ecx, dword [esp + 0xf4]
mov eax, dword [esp + 0xe4]
mov eax, dword [esp + 0xe8]
lea eax, [esp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xf4]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x48], 0x10
lea edx, [esp + 0x18]
push edx
push 0x50b114
call eax
mov byte [esp + 0x2d], al
mov eax, dword [esp + 0xe8]
mov esi, dword [esp + 0x9c]
mov eax, dword [esp + 0xf0]
cmp byte [esp + 0x2d], 0
mov ecx, 0
mov edx, 0
je 0x4c6cc0
jmp 0x4c7020
lea edx, [esp + 0x1c]
lea esi, [esp + 0x18]
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x128]
mov dword [esp + 0x98], ecx
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], edx
xor ecx, ecx
xor edx, edx
nop word cs:[eax + eax]
lea esi, [eax + 1]
mov dword [esp + 0xf8], esi
movzx ebx, byte [eax]
mov eax, ebx
and eax, 0x7f
shl eax, cl
or eax, edx
mov dword [esp + 0xa4], eax
add ecx, 7
mov eax, dword [esp + 0xf8]
mov edx, dword [esp + 0xa4]
test bl, bl
js 0x4c6df0
cmp dword [esp + 0xa4], 0
mov eax, dword [esp + 0x98]
je 0x4c74d9
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xdc]
mov ecx, dword [esp + 0xa4]
add ecx, ecx
mov edx, dword [esp + 8]
sub edx, ecx
mov ecx, dword [esp + 4]
add ecx, edx
add ecx, 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x48], 0x11
movzx edx, al
lea ecx, [esp + 0x1c]
call fcn.004c7530
mov dword [esp + 0xfc], eax
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0xdc]
mov eax, dword [esp + 0xe0]
lea eax, [esp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xfc]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x48], 0x12
lea edx, [esp + 0x18]
push edx
push 0x50b114
call eax
mov byte [esp + 0x2e], al
mov eax, dword [esp + 0xe0]
mov esi, dword [esp + 0x98]
mov eax, dword [esp + 0xf8]
cmp byte [esp + 0x2e], 0
mov ecx, 0
mov edx, 0
je 0x4c6df0
jmp 0x4c7020
mov ecx, dword [esp + 0xd8]
add cl, 0xfe
mov eax, 0x707
shr eax, cl
mov word [esp + 0xae], ax
movsx eax, cl
mov dword [esp + 0xec], eax
xor ecx, ecx
mov edx, dword [esp + 0x12c]
xor eax, eax
nop word [eax + eax]
lea esi, [edx + 1]
mov dword [esp + 0x100], esi
movzx ebx, byte [edx]
mov edx, ebx
and edx, 0x7f
shl edx, cl
or edx, eax
mov dword [esp + 0xa8], edx
add ecx, 7
mov edx, dword [esp + 0x100]
mov eax, dword [esp + 0xa8]
test bl, bl
js 0x4c6f20
cmp dword [esp + 0xa8], 0
je 0x4c74d9
mov ecx, dword [esp + 0xec]
movzx eax, word [esp + 0xae]
cmp cl, 0xa
ja 0x4c74f8
and eax, 1
test ax, ax
je 0x4c74f8
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xa8]
imul edx, dword [ecx*4 + 0x50b0d4]
add edx, dword [esp + 8]
mov ecx, dword [esp + 4]
add ecx, edx
add ecx, 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x48], 0x13
movzx edx, al
lea ecx, [esp + 0x1c]
call fcn.004c7530
mov dword [esp + 0x104], eax
mov ecx, dword [esp + 0x104]
lea eax, [esp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x104]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x48], 0x14
lea edx, [esp + 0x18]
push edx
push 0x50b114
call eax
mov byte [esp + 0x2f], al
mov edx, dword [esp + 0x100]
movzx ebx, byte [esp + 0x2f]
mov ecx, 0
mov eax, 0
cmp bl, 1
lea esi, [esp + 0xc]
jne 0x4c6f20
mov dword [esp + 0x130], esi
mov dword [esp + 0x48], 0x15
call fcn.004c5990
push 4
call fcn.004c5600
add esp, 4
mov ecx, dword [0x50b120]
add ecx, 8
mov dword [eax], ecx
mov dword [esp + 0x48], 0x16
push fcn.004c9f20
push 0x50b114
push eax
call fcn.004c5760
add esp, 0xc
jmp 0x4c7506
mov eax, dword [esp + 0x24]
add eax, 0x50
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x20]
add eax, dword [esp + 4]
mov ecx, dword [esp + 8]
add eax, ecx
add eax, 1
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x20]
add eax, dword [esp + 4]
mov ecx, dword [esp + 8]
add eax, ecx
add eax, 1
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x20]
add eax, dword [esp + 4]
mov ecx, dword [esp + 8]
add eax, ecx
add eax, 1
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x3c]
and eax, 0xf
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4c71c5
cmp eax, 2
jne 0x4c72b3
xor ecx, ecx
mov edx, dword [esp + 0x120]
xor eax, eax
nop word [eax + eax]
lea esi, [edx + 1]
mov dword [esp + 0xc8], esi
movzx ebx, byte [edx]
mov edx, ebx
and edx, 0x7f
shl edx, cl
or edx, eax
mov dword [esp + 0x90], edx
add ecx, 7
mov edx, dword [esp + 0xc8]
mov eax, dword [esp + 0x90]
test bl, bl
js 0x4c70f0
cmp dword [esp + 0x90], 0
je 0x4c7440
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x90]
add ecx, ecx
mov edx, dword [esp + 8]
sub edx, ecx
mov ecx, dword [esp + 4]
add ecx, edx
add ecx, 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x48], 8
movzx edx, al
lea ecx, [esp + 0x38]
call fcn.004c7530
mov dword [esp + 0xcc], eax
mov ecx, dword [esp + 0xcc]
mov eax, dword [esp + 0x88]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xcc]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x48], 9
lea esi, [esp + 0x34]
push esi
push edx
call eax
mov byte [esp + 0x2b], al
mov edx, dword [esp + 0xc8]
cmp byte [esp + 0x2b], 0
mov ecx, 0
mov eax, 0
je 0x4c70f0
jmp 0x4c73f3
mov edx, dword [esp + 0x11c]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x30]
nop word cs:[eax + eax]
nop
lea esi, [edx + 1]
mov dword [esp + 0xc0], esi
movzx ebx, byte [edx]
mov edx, ebx
and edx, 0x7f
shl edx, cl
or edx, eax
mov dword [esp + 0x8c], edx
add ecx, 7
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0x8c]
test bl, bl
js 0x4c71e0
cmp dword [esp + 0x8c], 0
je 0x4c746e
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x8c]
shl ecx, 2
mov edx, dword [esp + 8]
sub edx, ecx
mov ecx, dword [esp + 4]
add ecx, edx
add ecx, 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x48], 6
movzx edx, al
lea ecx, [esp + 0x38]
call fcn.004c7530
mov dword [esp + 0xc4], eax
mov ecx, dword [esp + 0xc4]
mov eax, dword [esp + 0x88]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc4]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x48], 7
lea esi, [esp + 0x34]
push esi
push edx
call eax
mov byte [esp + 0x2a], al
mov edx, dword [esp + 0xc0]
xor ecx, ecx
cmp byte [esp + 0x2a], 0
mov eax, 0
je 0x4c71e0
jmp 0x4c73f3
mov eax, dword [esp + 0x30]
add eax, 0xfffffffe
mov dword [esp + 0xbc], eax
mov ecx, dword [esp + 0xbc]
mov eax, 0x707
shr eax, cl
mov word [esp + 0xac], ax
xor ecx, ecx
mov edx, dword [esp + 0x118]
xor eax, eax
nop word cs:[eax + eax]
nop dword [eax]
lea esi, [edx + 1]
mov dword [esp + 0xd0], esi
movzx ebx, byte [edx]
mov edx, ebx
and edx, 0x7f
shl edx, cl
or edx, eax
mov dword [esp + 0x94], edx
add ecx, 7
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0x94]
test bl, bl
js 0x4c72f0
cmp dword [esp + 0x94], 0
mov eax, dword [esp + 0x30]
je 0x4c6c17
movzx eax, word [esp + 0xac]
mov ecx, dword [esp + 0xbc]
cmp ecx, 0xa
ja 0x4c74f8
and eax, 1
test ax, ax
je 0x4c74f8
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x94]
imul edx, dword [ecx*4 + 0x50b0cc]
add edx, dword [esp + 8]
mov ecx, dword [esp + 4]
add ecx, edx
add ecx, 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x48], 0xa
movzx edx, al
lea ecx, [esp + 0x38]
call fcn.004c7530
mov dword [esp + 0xd4], eax
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0x88]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xd4]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x48], 0xb
lea esi, [esp + 0x34]
push esi
push edx
call eax
mov byte [esp + 0x2c], al
mov edx, dword [esp + 0xd0]
movzx ebx, byte [esp + 0x2c]
mov ecx, 0
mov eax, 0
cmp bl, 1
jne 0x4c72f0
mov eax, dword [esp + 0x24]
neg dword [eax + 0x14]
mov eax, dword [esp + 0xb8]
add dword [eax + 4], 1
mov dword [esp + 0x48], 0xc
call fcn.004c5990
mov dword [esp + 0x48], 0xd
call fcn.004c5990
push dword [esp + 0x80]
call fcn.004c58b0
add esp, 4
mov dword [esp + 0x48], 0xe
call fcn.004c5b80
jmp 0x4c7506
lea ecx, [esp + 0xc]
mov eax, dword [0x50b120]
add eax, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
add eax, dword [esp + 4]
mov edx, dword [esp + 8]
add eax, edx
add eax, 1
lea esi, [esp + 0x18]
lea edx, [esp + 0x1c]
jmp 0x4c6dcd
lea ecx, [esp + 0xc]
mov eax, dword [0x50b120]
add eax, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
add eax, dword [esp + 4]
mov edx, dword [esp + 8]
add eax, edx
add eax, 1
lea esi, [esp + 0x18]
lea edx, [esp + 0x1c]
jmp 0x4c6c9c
ud2
mov eax, dword [esp + 0x134]
mov ecx, dword [esp + 0x138]
mov dword [esp + 0x48], 0xffffffff
push eax
call fcn.004c79f0
mov eax, dword [esp + 0x50]
push dword [esp + 0x4c]
call fcn.00468e60
push dword [esp + 0x7c]
call fcn.004c8040
push dword [esp + 0x7c]
call fcn.004c8040
lea ecx, [esp + 0xc]
call fcn.004c9f20
mov dword [esp + 0x48], 0xffffffff
call fcn.004c5990
push dword [esp + 0x7c]
call fcn.004c8040
mov edx, dword [esp + 0x14]
mov ecx, 1
call fcn.004c7510
nop word cs:[eax + eax]