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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x24]
cmp eax, dword [ecx + 8]
jbe 0x4cfed8
sub esp, 0xa4
mov eax, 0
mov dword [esp + 0xa0], eax
mov byte [esp + 0x2f], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 8]
cmp dword [ecx], 2
je 0x4cfd1f
lea ecx, [eax + 0x58]
mov dword [esp], ecx
call fcn.00461cf0
mov esi, dword [esp + 8]
mov eax, dword [esp + 4]
lea ecx, [0x50b4a0]
cmp eax, ecx
jne 0x4cfb63
lea edi, [esp + 0x8c]
call fcn.0045e26e
jmp 0x4cfb75
lea edi, [esp + 0x8c]
mov edx, eax
xor eax, eax
call fcn.0045dd8b
mov eax, edx
lea edi, [esp + 0x78]
lea esi, [esp + 0x8c]
call fcn.0045e26e
lea ecx, [0x50b4a0]
cmp eax, ecx
jne 0x4cfc5b
lea edi, [esp + 0x50]
lea esi, [esp + 0x78]
call fcn.0045e26e
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
test ecx, 0x80000000
je 0x4cfbdc
shl ecx, 1
mov edx, eax
shr eax, 0x1f
or ecx, eax
mov eax, edx
shl edx, 1
mov ebx, ecx
shl ecx, 1
shr edx, 0x1f
or ecx, edx
mov edx, ecx
add ecx, 0xd7b17f80
shr ebx, 0x1f
add edx, 0xd7b17f80
adc ebx, 0xd
jmp 0x4cfbe4
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
test ebx, ebx
sete dl
test ecx, ecx
sete cl
and edx, ecx
test dl, dl
je 0x4cfbfb
test eax, 0x3fffffff
je 0x4cfc5b
lea edi, [esp]
lea esi, [esp + 0x78]
call fcn.0045e26e
call fcn.0049ea70
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.0049cac0
mov eax, dword [esp + 8]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea ecx, [0x4cfef0]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x48]
mov dword [esp + 0xa0], ecx
mov byte [esp + 0x2f], 1
mov eax, dword [eax]
mov ecx, 1
jmp 0x4cfc5f
xor eax, eax
xor ecx, ecx
mov byte [esp + 0x2e], cl
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0xa8]
mov ebx, dword [edx + 0x30]
mov dword [esp], 0
mov dword [esp + 4], ebx
call fcn.00405660
movzx eax, byte [esp + 8]
test al, al
je 0x4cfcd2
mov eax, dword [0x5e3870]
mov ecx, dword [0x5e3874]
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
movzx eax, byte [esp + 0x2e]
test al, 1
je 0x4cfccb
and eax, 0xfffffffe
mov byte [esp + 0x2f], al
mov edx, dword [esp + 0xa0]
mov eax, dword [edx]
call eax
add esp, 0xa4
ret
mov ecx, dword [esp + 0xa8]
mov ebx, dword [ecx + 4]
mov ebx, dword [ebx + 8]
mov ebx, dword [ebx]
mov ebp, dword [ecx]
lea edi, [esp + 0x64]
xor eax, eax
call fcn.0045dd8b
mov byte [esp + 0x64], bl
mov byte [esp + 0x65], 2
mov dword [esp + 0x68], ebp
mov ecx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0xac]
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0xb0]
xor esi, esi
jmp 0x4cfd8b
mov dword [esp], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xc], eax
call fcn.004cff30
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
add esp, 0xa4
ret
mov ecx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov esi, eax
mov eax, dword [esp + 0x3c]
mov edi, edx
mov edx, ebp
mov ebp, edi
test edx, edx
je 0x4cfe79
mov edi, ebx
mov ebx, dword [ecx + 0x28]
cmp edx, ebx
jg 0x4cfd9e
mov ebx, edx
cmp ebx, eax
ja 0x4cfec2
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], eax
cmp ebx, edx
ja 0x4cfeb9
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
mov eax, dword [ecx + 4]
mov dword [esp], eax
lea esi, [esp + 0x64]
mov eax, edi
lea edi, [esp + 4]
call fcn.0045e26e
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 1
call fcn.004cdf20
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0xa8]
inc dword [ebp + 0x64]
mov esi, ebx
mov ebx, dword [esp + 0x3c]
mov edi, edx
mov edx, dword [esp + 0x30]
sub ebx, edx
mov dword [esp + 0x3c], ebx
mov ebp, dword [esp + 0x38]
sub ebp, edx
neg ebx
sar ebx, 0x1f
and edx, ebx
mov ebx, dword [esp + 0x44]
add edx, ebx
mov ebx, dword [esp + 0x34]
add eax, ebx
test ecx, ecx
je 0x4cfd70
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], esi
movzx eax, byte [esp + 0x2e]
test al, 1
je 0x4cfe72
and eax, 0xfffffffe
mov byte [esp + 0x2f], al
mov edx, dword [esp + 0xa0]
mov eax, dword [edx]
call eax
add esp, 0xa4
ret
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
movzx eax, byte [esp + 0x2e]
test al, 1
je 0x4cfeb2
and eax, 0xfffffffe
mov byte [esp + 0x2f], al
mov edx, dword [esp + 0xa0]
mov eax, dword [edx]
call eax
add esp, 0xa4
ret
mov eax, ebx
mov ecx, edx
call fcn.0045dc90
mov ecx, ebx
mov edx, eax
call fcn.0045dc70
nop
call fcn.00432850
add esp, 0xa4
ret
call fcn.0045c7a0
jmp fcn.004cfad0