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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4c67d8
sub esp, 0x7c
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4c64ad
mov ecx, dword [esp + 0x90]
jmp 0x4c64b4
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x94]
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x98]
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov eax, 0xffffffff
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x6c]
jmp 0x4c653f
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x94]
mov esi, dword [esp + 0x84]
mov edx, ebx
mov ebx, esi
mov esi, dword [esp + 0x90]
mov dword [esp + 0x54], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x8c]
mov ebp, dword [esp + 0x80]
mov edi, dword [esp + 0x98]
mov ebx, dword [esp + 0x54]
cmp edi, ebx
jle 0x4c6718
mov edi, dword [esp + 0x44]
cmp ecx, edi
jl 0x4c6718
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x10]
mov dword [esp], ebp
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.004c21e0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
test ecx, ecx
je 0x4c6718
cmp ecx, 1
jbe 0x4c67cd
mov ebp, dword [edx + 4]
mov esi, dword [esp + 0x44]
cmp esi, ebp
je 0x4c65ed
mov esi, 1
jmp 0x4c66df
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x50], ebx
mov ebp, dword [edx]
mov dword [esp + 0x68], ebp
mov edi, dword [esp + 0x40]
cmp ebp, edi
mov ebx, dword [esp + 0x8c]
test ebx, ebx
je 0x4c6659
mov ebp, dword [esp + 0x94]
mov edi, dword [esp + 0x58]
cmp ebp, edi
jb 0x4c67c4
cmp edi, esi
jb 0x4c67bb
sub ebp, esi
mov ecx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, esi
lea edx, [ebx + ebp]
mov dword [esp], edx
sub edi, esi
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
call fcn.00465780
mov eax, dword [esp + 0x10]
jmp 0x4c669d
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x58]
cmp ebx, ebp
jb 0x4c67b2
cmp ebp, esi
jb 0x4c67a9
sub ebp, esi
mov ecx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, esi
mov edx, dword [esp + 0x84]
lea ebx, [edx + ebp]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.00465950
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x4c66b7
mov ecx, dword [esp + 0x44]
add eax, ecx
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x40]
cmp ecx, ebx
mov ecx, dword [esp + 0x58]
jmp 0x4c66c8
mov ecx, dword [esp + 0x58]
lea eax, [ecx + 1]
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x40]
cmp ebx, ebp
setne bl
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x74]
mov ebp, eax
mov esi, ebx
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x50]
mov edi, dword [edx + 4]
xchg esi, eax
test al, al
xchg esi, eax
je 0x4c670f
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebp
test eax, eax
je 0x4c6707
mov eax, dword [esp + 0x80]
mov esi, dword [eax + 0x10]
inc esi
shl esi, 1
mov dword [esp + 0x48], esi
jmp 0x4c6756
xor eax, eax
xor ecx, ecx
xor edx, edx
jmp 0x4c671c
mov eax, dword [esp + 0x54]
jmp 0x4c64fa
add esp, 0x7c
ret
mov ebx, dword [esp + 0x9c]
mov ebp, dword [ebx]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov edx, ebx
call ebp
mov eax, dword [esp + 0x54]
inc eax
mov ebp, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
jmp 0x4c64fa
mov dword [edx + ecx*4], 0xffffffff
mov ecx, eax
mov eax, dword [esp + 0x80]
cmp ecx, esi
jge 0x4c67a2
lea eax, [ecx + 1]
cmp ebx, eax
jae 0x4c6746
mov dword [esp + 0x5c], ecx
lea ebp, [0x4f9820]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
call fcn.00446d70
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
inc eax
mov ecx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x64]
jmp 0x4c6746
mov eax, ebx
jmp 0x4c671c
mov eax, esi
mov ecx, ebp
call fcn.0045d6e0
mov ecx, ebp
mov edx, ebx
call fcn.0045d6a0
mov eax, esi
mov ecx, edi
call fcn.0045d6e0
mov ecx, edi
mov edx, ebp
call fcn.0045d6c0
mov eax, 1
call fcn.0045d680
nop
call fcn.0045c1c0
jmp fcn.004c6480