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

Disassembly:
push 0xffffffffffffffff
push 0x65dfb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov eax, dword [esp + 0x94]
push ebx
push ebp
push esi
mov edx, dword [eax + 8]
mov esi, ecx
mov ecx, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [eax + 0xc]
xor ebx, ebx
xor ebp, ebp
cmp edi, ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], eax
jle 0x4d009d
lea eax, [edx + 8]
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
lea eax, [ecx + 8]
add edx, 4
add ecx, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xac]
mov edx, dword [ecx]
mov ecx, dword [eax]
cmp edi, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], ecx
je 0x4cfccb
lea edx, [esp + 0x30]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, edi
call fcn.004aabd0
mov ecx, dword [esp + 0x24]
mov al, byte [ecx + ebp]
and eax, 6
cmp eax, 6
jne 0x4cfd60
mov eax, dword [esp + 0x18]
mov edi, dword [esi]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x6c], edx
shr edi, 8
cmp edi, eax
jb 0x4cfd02
push edi
mov ecx, esi
call fcn.005023a0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
and eax, 0xff
mov edx, dword [ecx + edi*4]
lea ecx, [edx + eax*8]
mov edx, dword [esi + 0x10]
mov edx, dword [edx + edi*4]
mov byte [edx + eax], 1
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x6c]
mov dword [ecx], eax
mov eax, dword [esp + 0xa8]
mov dword [ecx + 4], edx
mov ecx, dword [esi]
inc ecx
cmp eax, ebx
mov dword [esi], ecx
je 0x4d003c
cmp ebp, ebx
je 0x4d003c
mov eax, dword [esp + 0x24]
test byte [eax + ebp - 1], 1
jne 0x4d003c
mov ecx, esi
call fcn.00502460
jmp 0x4d003c
cmp eax, 2
jne 0x4cfe07
mov eax, dword [esp + 0x24]
cmp byte [eax + ebp - 1], 6
jne 0x4cfdb2
mov ecx, dword [esp + 0x34]
dec ecx
cmp ebp, ecx
je 0x4cfd84
cmp byte [eax + ebp + 1], 6
jne 0x4cfdb2
mov eax, dword [esp + 0x14]
fld dword [eax]
fcomp dword [eax - 4]
fnstsw ax
test ah, 0x40
je 0x4cfdb2
mov eax, dword [esp + 0x10]
fld dword [eax]
fcomp dword [eax - 4]
fnstsw ax
test ah, 0x40
je 0x4cfdb2
fld dword [esp + 0x18]
fadd dword [0x66d22c]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov edi, dword [esi]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x64], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x5c], edx
shr edi, 8
cmp edi, eax
jb 0x4cfdd6
push edi
mov ecx, esi
call fcn.005023a0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
and eax, 0xff
mov edx, dword [ecx + edi*4]
lea ecx, [edx + eax*8]
mov edx, dword [esi + 0x10]
mov edx, dword [edx + edi*4]
mov byte [edx + eax], 2
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [esi]
inc eax
mov dword [esi], eax
jmp 0x4d003c
cmp eax, 4
jne 0x4d003c
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
cmp edi, ebx
mov ecx, dword [eax - 4]
mov eax, dword [edx - 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx]
mov ecx, dword [eax]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [edx]
mov edx, dword [ecx]
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], edx
je 0x4cfe85
lea eax, [esp + 0x40]
lea ecx, [esp + 0x44]
push eax
push ecx
mov ecx, edi
call fcn.004aabd0
lea edx, [esp + 0x38]
lea eax, [esp + 0x48]
push edx
push eax
mov ecx, edi
call fcn.004aabd0
lea ecx, [esp + 0x50]
lea edx, [esp + 0x54]
push ecx
push edx
mov ecx, edi
call fcn.004aabd0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], 0x40
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
push ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0xbc], ebx
call fcn.00501b30
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov eax, 8
add edx, eax
add edi, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x28]
add ecx, eax
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x20]
add edx, eax
mov dword [esp + 0x28], edx
add edi, eax
add ecx, eax
lea edx, [esp + 0x4c]
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], ecx
push edx
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0xa4], 1
add ebp, 2
mov dword [esp + 0x24], edi
mov dword [esp + 0x84], ebx
call fcn.004d3640
mov ebx, eax
test ebx, ebx
je 0x4cffde
cmp ebx, 1
jne 0x4cff71
cmp dword [esi], 0
je 0x4cff71
mov ebx, 2
mov edi, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
shr edi, 8
cmp edi, eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x60], edx
jb 0x4cff95
push edi
mov ecx, esi
call fcn.005023a0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
and eax, 0xff
mov edx, dword [ecx + edi*4]
lea ecx, [edx + eax*8]
mov edx, dword [esi + 0x10]
add ecx, 4
mov edx, dword [edx + edi*4]
mov byte [edx + eax], bl
add edx, eax
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov dword [ecx - 4], eax
mov dword [ecx], edx
mov ebx, dword [esi]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x3c]
push eax
inc ebx
push ecx
lea ecx, [esp + 0x78]
mov dword [esi], ebx
call fcn.004d3640
mov ebx, eax
test ebx, ebx
jne 0x4cff62
mov eax, dword [esp + 0x84]
mov dword [esp + 0x9c], 0xffffffff
test eax, eax
je 0x4d003a
mov edx, dword [esp + 0x8c]
lea edi, [edx + eax*4 - 4]
dec eax
mov dword [esp + 0x84], eax
mov eax, dword [edi]
push eax
call fcn.00492960
mov eax, dword [esp + 0x88]
add esp, 4
sub edi, 4
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x84], eax
jne 0x4d0007
mov edx, dword [esp + 0x8c]
push edx
call fcn.00492960
add esp, 4
xor ebx, ebx
mov eax, dword [esp + 0x24]
test byte [eax + ebp], 1
je 0x4d004d
mov ecx, esi
call fcn.00502460
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov eax, 4
add edi, eax
add edx, eax
add ecx, eax
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x20]
add edi, eax
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x34]
inc ebp
cmp ebp, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ecx
jl 0x4cfc9b
mov edi, eax
cmp dword [esp + 0xa8], ebx
je 0x4d00bc
cmp edi, ebx
je 0x4d00bc
mov ecx, dword [esp + 0x24]
test byte [ecx + edi - 1], 1
jne 0x4d00bc
mov ecx, esi
call fcn.00502460
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 0xc