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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x5279f0]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x98]
push ebp
mov ebp, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x18], ebp
xor eax, eax
cmp eax, 0x20
jae 0x4c1967
xor ecx, ecx
mov word [esp + eax + 0x54], cx
add eax, 2
cmp eax, 0x1e
jbe 0x4c1545
push esi
mov esi, dword [esp + 0xa8]
test esi, esi
je 0x4c157e
lea esp, [esp]
movzx eax, word [ebx + ecx*2]
inc ecx
inc word [esp + eax*2 + 0x58]
cmp ecx, esi
jb 0x4c1570
mov eax, dword [edi]
mov edi, 0xf
cmp word [esp + edi*2 + 0x58], 0
jne 0x4c1593
dec edi
cmp edi, 1
jae 0x4c1585
cmp eax, edi
cmova eax, edi
test edi, edi
jne 0x4c15db
mov ecx, dword [edx]
mov dword [esp + 0x10], 0x140
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
add dword [edx], 4
mov ecx, dword [edx]
mov dword [ecx], eax
mov ecx, dword [esp + 0x4c]
add dword [edx], 4
mov dword [ecx], 1
xor eax, eax
mov ecx, dword [esp + 0x98]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c22ab
add esp, 0x8c
ret
mov ebx, 1
mov dword [esp + 0x30], ebx
cmp edi, ebx
jbe 0x4c15f9
cmp word [esp + ebx*2 + 0x58], 0
jne 0x4c15f5
inc ebx
cmp ebx, edi
jb 0x4c15e8
mov dword [esp + 0x30], ebx
cmp eax, ebx
cmovb eax, ebx
mov edx, 1
mov dword [esp + 0x24], eax
mov ecx, edx
lea esp, [esp]
movzx eax, word [esp + ecx*2 + 0x58]
add edx, edx
sub edx, eax
js 0x4c195f
inc ecx
cmp ecx, 0xf
jbe 0x4c1610
test edx, edx
jle 0x4c1640
cmp dword [esp + 0xa0], 0
je 0x4c195f
cmp edi, 1
jne 0x4c195f
xor eax, eax
mov word [esp + 0x7a], ax
mov ecx, 2
lea esp, [esp]
mov ax, word [esp + ecx + 0x78]
add ax, word [esp + ecx + 0x58]
add ecx, 2
mov word [esp + ecx + 0x78], ax
cmp ecx, 0x1e
jb 0x4c1650
xor ecx, ecx
test esi, esi
je 0x4c1692
mov edx, dword [esp + 0x44]
movzx eax, word [edx + ecx*2]
test ax, ax
je 0x4c168d
movzx eax, word [esp + eax*2 + 0x78]
mov word [ebp + eax*2], cx
movzx eax, word [edx + ecx*2]
inc word [esp + eax*2 + 0x78]
inc ecx
cmp ecx, esi
jb 0x4c1671
mov eax, dword [esp + 0xa0]
sub eax, 0
je 0x4c16e1
dec eax
je 0x4c16ba
or eax, 0xffffffff
mov dword [esp + 0x34], 0x516cc0
mov dword [esp + 0x3c], 0x516d00
mov dword [esp + 0x2c], eax
jmp 0x4c16f1
mov eax, 0x516c40
sub eax, 0x202
mov dword [esp + 0x34], eax
mov eax, 0x516c80
sub eax, 0x202
mov dword [esp + 0x3c], eax
mov eax, 0x100
mov dword [esp + 0x2c], eax
jmp 0x4c16f1
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], 0x13
mov ecx, dword [esp + 0x40]
mov edx, 1
mov eax, dword [ecx]
mov ecx, dword [esp + 0x24]
shl edx, cl
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
mov esi, edx
mov dword [esp + 0x48], 0xffffffff
lea eax, [esi - 1]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], esi
cmp eax, 1
jne 0x4c1745
cmp esi, 0x354
ja 0x4c1752
jmp 0x4c1770
cmp eax, 2
jne 0x4c1770
cmp esi, 0x250
jbe 0x4c1770
mov eax, 1
jmp 0x4c15c2
mov edx, dword [esp + 0x28]
jmp 0x4c1770
mov ebp, dword [esp + 0x1c]
lea ebx, [ebx]
mov al, bl
sub al, byte [esp + 0x14]
mov byte [esp + 0x11], al
movzx eax, word [ebp]
mov ebp, dword [esp + 0x2c]
mov ecx, eax
cmp ecx, ebp
jge 0x4c178f
mov byte [esp + 0x10], 0
jmp 0x4c17ad
jle 0x4c17a6
mov eax, dword [esp + 0x3c]
mov al, byte [eax + ecx*2]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x34]
mov ax, word [eax + ecx*2]
jmp 0x4c17ad
mov byte [esp + 0x10], 0x60
xor eax, eax
mov ecx, ebx
sub ecx, dword [esp + 0x14]
mov word [esp + 0x12], ax
mov eax, dword [esp + 0x20]
mov esi, 1
shl esi, cl
mov ecx, dword [esp + 0x14]
shr eax, cl
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
lea ebp, [esi*4]
add eax, edx
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x10]
sub ecx, ebp
mov dword [ecx], eax
sub edx, esi
jne 0x4c17e1
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x20]
test ecx, edx
je 0x4c1806
jmp 0x4c1800
shr edx, 1
test ecx, edx
jne 0x4c1800
test edx, edx
je 0x4c1813
lea eax, [edx - 1]
and eax, ecx
add edx, eax
jmp 0x4c1815
xor edx, edx
mov ebp, dword [esp + 0x1c]
add ebp, 2
mov eax, 0xffff
add word [esp + ebx*2 + 0x58], ax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ebp
jne 0x4c1848
cmp ebx, edi
je 0x4c1920
movzx eax, word [ebp]
mov ecx, dword [esp + 0x44]
movzx ebx, word [ecx + eax*2]
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x24]
cmp ebx, eax
jbe 0x4c1760
mov ebp, dword [esp + 0x50]
and ebp, edx
mov edx, dword [esp + 0x28]
cmp ebp, dword [esp + 0x48]
je 0x4c1766
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
test edx, edx
cmove edx, eax
mov eax, dword [esp + 0x54]
sub ebx, edx
lea ecx, [ecx + eax*4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov eax, 1
mov ecx, ebx
add edx, ebx
shl eax, cl
cmp edx, edi
jae 0x4c18b4
lea esi, [esp + 0x58]
lea esi, [esi + edx*2]
lea esp, [esp]
movzx ecx, word [esi]
sub eax, ecx
test eax, eax
jle 0x4c18b4
inc edx
inc ebx
add esi, 2
add eax, eax
cmp edx, edi
jb 0x4c18a0
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0xa0]
mov edx, 1
mov ecx, ebx
shl edx, cl
add esi, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], esi
cmp eax, 1
jne 0x4c18df
cmp esi, 0x354
jmp 0x4c18ea
cmp eax, 2
jne 0x4c18f0
cmp esi, 0x250
ja 0x4c1752
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
mov eax, dword [esi]
mov dword [esp + 0x48], ebp
mov byte [eax + ebp*4], bl
mov eax, dword [esi]
mov ebx, dword [esp + 0x30]
mov byte [eax + ebp*4 + 1], cl
mov ecx, dword [esi]
mov eax, dword [esp + 0x18]
sub eax, ecx
sar eax, 2
mov word [ecx + ebp*4 + 2], ax
jmp 0x4c1766
test edx, edx
je 0x4c1943
sub bl, byte [esp + 0x14]
mov ecx, dword [esp + 0x18]
xor eax, eax
mov byte [esp + 0x10], 0x40
mov byte [esp + 0x11], bl
mov word [esp + 0x12], ax
mov eax, dword [esp + 0x10]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
shl eax, 2
add dword [ecx], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
mov dword [ecx], eax
jmp 0x4c15c0
or eax, 0xffffffff
jmp 0x4c15c2
call fcn.004c36c8
int3