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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
lea eax, [esp + 0x30]
push edi
push eax
call fcn.004ba080
mov esi, dword [eax + 4]
xor ebx, ebx
add esp, 4
cmp esi, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
je 0x4c13c2
mov edi, esi
push esi
mov dword [esp + 0x1c], edi
call fcn.004ac710
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x4c13cc
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.004adef0
cmp edi, ebx
je 0x4c13e7
push edi
call fcn.004ab140
add esp, 4
cmp esi, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
je 0x4c13fe
mov edx, dword [esp + 0x1c]
push edx
call dword [0x100b0088]
cmp dword [esp + 0x38], ebx
je 0x4c1455
mov esi, dword [esp + 0x34]
push esi
call dword [0x100b0070]
test eax, eax
jne 0x4c1426
mov ecx, esi
call fcn.004b2ab0
mov esi, dword [esi + 4]
push esi
call fcn.004adce0
add esp, 4
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
call fcn.004adef0
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
je 0x4c1455
push eax
call fcn.004ab140
add esp, 4
mov eax, dword [ebp + 0x18]
cmp eax, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
je 0x4c156d
movzx eax, word [eax]
cmp ax, bx
je 0x4c156d
movzx ecx, ax
push ecx
call fcn.004adcc0
mov esi, dword [esp + 0x24]
add esp, 4
cmp esi, ebx
mov dword [esp + 0x10], eax
je 0x4c1499
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c149d
xor edi, edi
xor eax, eax
cmp edi, ebx
mov edx, dword [esp + 0x10]
mov dword [eax + 0x218], edx
je 0x4c14b4
push edi
call fcn.004ab140
add esp, 4
cmp esi, ebx
je 0x4c14c7
push esi
mov dword [esp + 0x34], esi
call fcn.004ac710
add esp, 4
jmp 0x4c14cd
mov dword [esp + 0x30], ebx
xor eax, eax
mov edi, dword [eax + 0x218]
cmp edi, ebx
je 0x4c14ef
push edi
mov dword [esp + 0x2c], edi
call fcn.004ac710
add esp, 4
push edi
call fcn.004ac710
add esp, 4
jmp 0x4c14f7
xor edi, edi
mov dword [esp + 0x28], ebx
xor eax, eax
mov ecx, dword [ebp + 0x18]
movzx edx, word [ecx]
mov ecx, dword [ecx + 4]
push edx
push ecx
push eax
call fcn.00458f30
add esp, 0xc
cmp edi, ebx
je 0x4c1518
push edi
call fcn.004ab140
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4c1529
push eax
call fcn.004ab140
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4c153a
push eax
call fcn.004ab140
add esp, 4
cmp esi, ebx
je 0x4c1559
push esi
mov edi, esi
call fcn.004ac710
mov edx, dword [ebp + 0x18]
movzx ecx, word [edx]
add esp, 4
shr ecx, 1
mov dword [eax + 0x21c], ecx
jmp 0x4c158c
mov edx, dword [ebp + 0x18]
movzx ecx, word [edx]
xor eax, eax
xor edi, edi
shr ecx, 1
mov dword [eax + 0x21c], ecx
jmp 0x4c158c
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x4c1582
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c1586
xor edi, edi
xor eax, eax
mov dword [eax + 0x218], ebx
cmp edi, ebx
je 0x4c1599
push edi
call fcn.004ab140
add esp, 4
lea edx, [esp + 0x3c]
push edx
call fcn.004b2c60
mov ecx, dword [eax + 4]
add esp, 4
lea edx, [esp + 0x4c]
mov dword [esp + 0x10], ecx
push edx
mov ecx, eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
call fcn.004adef0
cmp esi, ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
je 0x4c15da
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c15de
xor edi, edi
xor eax, eax
cmp edi, ebx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x230], ecx
je 0x4c15f5
push edi
call fcn.004ab140
add esp, 4
cmp dword [esp + 0x40], ebx
je 0x4c164c
mov edi, dword [esp + 0x3c]
push edi
call dword [0x100b0070]
test eax, eax
jne 0x4c161d
mov ecx, edi
call fcn.004b0f50
mov edi, dword [edi + 4]
push edi
call fcn.004adce0
add esp, 4
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x40]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], ebx
call fcn.004adef0
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
je 0x4c164c
push eax
call fcn.004ab140
add esp, 4
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
call fcn.004bfb60
mov ecx, dword [eax + 4]
add esp, 4
lea edx, [esp + 0x6c]
mov dword [esp + 0x10], ecx
push edx
mov ecx, eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
call fcn.004adef0
cmp esi, ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
je 0x4c1695
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c1699
xor edi, edi
xor eax, eax
cmp edi, ebx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x238], ecx
je 0x4c16b0
push edi
call fcn.004ab140
add esp, 4
cmp dword [esp + 0x48], ebx
je 0x4c1707
mov edi, dword [esp + 0x44]
push edi
call dword [0x100b0070]
test eax, eax
jne 0x4c16d8
mov ecx, edi
call fcn.004bc250
mov edi, dword [edi + 4]
push edi
call fcn.004adce0
add esp, 4
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
call fcn.004adef0
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
je 0x4c1707
push eax
call fcn.004ab140
add esp, 4
cmp esi, ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
je 0x4c1720
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c1724
xor edi, edi
xor eax, eax
cmp edi, ebx
mov dword [eax + 0x234], ebx
je 0x4c1737
push edi
call fcn.004ab140
add esp, 4
cmp esi, ebx
je 0x4c1748
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c174c
xor edi, edi
xor eax, eax
cmp edi, ebx
mov dword [eax + 0x23c], ebx
je 0x4c175f
push edi
call fcn.004ab140
add esp, 4
cmp esi, ebx
je 0x4c1770
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c1774
xor edi, edi
xor eax, eax
xor ecx, ecx
cmp dword [ebp + 0xc], ebx
sete cl
cmp edi, ebx
mov dword [eax + 0x228], ecx
je 0x4c178f
push edi
call fcn.004ab140
add esp, 4
cmp dword [ebp + 0xc], ebx
jne 0x4c1865
push ebx
push 0x100b0384
lea ecx, [esp + 0x98]
call fcn.00498160
mov ecx, eax
call fcn.004c87c0
push eax
push ecx
mov eax, esp
lea edx, [esp + 0x38]
push edx
mov dword [eax], ebx
call fcn.004be7f0
mov ecx, dword [eax + 4]
add esp, 0x10
lea edx, [esp + 0x7c]
mov dword [esp + 0x14], ecx
push edx
mov ecx, eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebx
call fcn.004adef0
cmp esi, ebx
je 0x4c17f6
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c17fa
xor edi, edi
xor eax, eax
cmp edi, ebx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x22c], ecx
je 0x4c1811
push edi
call fcn.004ab140
add esp, 4
cmp dword [esp + 0x30], ebx
je 0x4c188d
mov eax, dword [esp + 0x2c]
push eax
mov edi, eax
call dword [0x100b0070]
test eax, eax
jne 0x4c183b
mov ecx, edi
call fcn.004b23f0
mov edx, dword [edi + 4]
push edx
call fcn.004adce0
add esp, 4
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], ebx
call fcn.004adef0
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4c188d
push eax
jmp 0x4c1885
cmp esi, ebx
je 0x4c1876
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c187a
xor edi, edi
xor eax, eax
cmp edi, ebx
mov dword [eax + 0x22c], ebx
je 0x4c188d
push edi
call fcn.004ab140
add esp, 4
cmp esi, ebx
je 0x4c189e
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c18a2
xor edi, edi
xor eax, eax
cmp edi, ebx
mov dword [eax + 0x240], ebx
je 0x4c18b5
push edi
call fcn.004ab140
add esp, 4
cmp esi, ebx
je 0x4c18c6
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c18ca
xor edi, edi
xor eax, eax
cmp edi, ebx
mov dword [eax + 0xc], ebx
je 0x4c18da
push edi
call fcn.004ab140
add esp, 4
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4c19a0
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x100c0094
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c19a0
test esi, esi
mov dword [esp + 0x14], eax
je 0x4c1919
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
mov ebx, eax
jmp 0x4c191d
xor edi, edi
xor ebx, ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x8c]
push eax
call edx
test edi, edi
mov eax, dword [eax]
mov dword [ebx + 0xc], eax
je 0x4c1942
push edi
call fcn.004ab140
add esp, 4
test esi, esi
je 0x4c1953
push esi
mov ebx, esi
call fcn.004ac710
add esp, 4
jmp 0x4c1957
xor ebx, ebx
xor eax, eax
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4c196b
push eax
mov edi, eax
call fcn.004ac710
add esp, 4
jmp 0x4c196f
xor edi, edi
xor eax, eax
push eax
call dword [0x100b0088]
test edi, edi
je 0x4c1983
push edi
call fcn.004ab140
add esp, 4
test ebx, ebx
je 0x4c1990
push ebx
call fcn.004ab140
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c19a0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x100ccdf0]
mov ecx, dword [eax + 0x24]
add ecx, 0x18
push ecx
call dword [0x100b0088]
test esi, esi
mov ebx, eax
je 0x4c19c5
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c19c9
xor edi, edi
xor eax, eax
test edi, edi
mov dword [eax + 8], ebx
je 0x4c19d9
push edi
call fcn.004ab140
add esp, 4
mov edx, dword [ebp + 0x14]
movzx eax, word [edx]
cmp ax, 0x1fe
movzx ebx, ax
jb 0x4c19ed
mov ebx, 0x1fe
test esi, esi
je 0x4c19fe
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c1a02
xor edi, edi
xor eax, eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 4]
push ebx
push edx
add eax, 0x14
push eax
call fcn.00458f30
xor ebx, ebx
add esp, 0xc
cmp edi, ebx
je 0x4c1a25
push edi
call fcn.004ab140
add esp, 4
cmp esi, ebx
je 0x4c1a36
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c1a3a
xor edi, edi
xor eax, eax
mov ecx, dword [ebp + 0x14]
movzx edx, word [ecx]
shr edx, 1
cmp edi, ebx
mov dword [eax + 0x214], edx
je 0x4c1a55
push edi
call fcn.004ab140
add esp, 4
cmp esi, ebx
je 0x4c1a66
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c1a6a
xor edi, edi
xor eax, eax
cmp edi, ebx
mov dword [eax + 0x220], ebx
je 0x4c1a7d
push edi
call fcn.004ab140
add esp, 4
cmp esi, ebx
je 0x4c1a8e
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c1a92
xor edi, edi
xor eax, eax
cmp edi, ebx
mov dword [eax + 0x224], ebx
je 0x4c1aa5
push edi
call fcn.004ab140
add esp, 4
cmp esi, ebx
je 0x4c1ab6
push esi
mov edi, esi
call fcn.004ac710
add esp, 4
jmp 0x4c1aba
xor edi, edi
xor eax, eax
cmp edi, ebx
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x10], ecx
je 0x4c1acd
push edi
call fcn.004ab140
add esp, 4
cmp esi, ebx
mov edi, dword [ebp + 8]
mov dword [edi + 4], ebx
mov dword [edi], ebx
je 0x4c1aee
mov ebx, esi
push esi
mov dword [esp + 0x2c], ebx
call fcn.004ac710
add esp, 4
mov dword [esp + 0x24], eax
jmp 0x4c1afa
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.004adef0
test ebx, ebx
je 0x4c1b13
push ebx
call fcn.004ab140
add esp, 4
test esi, esi
je 0x4c1b6b
mov eax, dword [edi]
push eax
call dword [0x100b0088]
mov esi, dword [esp + 0x1c]
push esi
call dword [0x100b0070]
test eax, eax
jne 0x4c1b42
mov ecx, esi
call fcn.004b2ab0
mov ecx, dword [esi + 4]
push ecx
call fcn.004adce0
add esp, 4
lea edx, [esp + 0x74]
xor esi, esi
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], esi
call fcn.004adef0
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x4c1b6b
push eax
call fcn.004ab140
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret