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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x4c59dd
sub esp, 0x84
mov eax, 0
mov dword [esp + 0x80], eax
mov byte [esp + 0x27], 0
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4c57e8
mov ecx, dword [esp + 0x8c]
cmp ecx, 1
je 0x4c57e8
mov ecx, dword [eax + 4]
mov dword [esp], ecx
call fcn.004c2160
mov eax, dword [esp + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
lea ecx, [0x4c59f0]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x80], ecx
mov byte [esp + 0x27], 1
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx + 4]
mov dword [esp + 0x58], edx
mov ebx, dword [esp + 0x90]
xor ebp, ebp
jmp 0x4c5869
add esp, 0x84
ret
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov eax, dword [eax + 0x14]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
call fcn.004c2220
mov eax, dword [esp + 0x38]
lea ebp, [eax + 1]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x3c]
mov ecx, edx
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x90]
cmp ebp, edx
jge 0x4c59b0
mov edx, dword [ecx + 4]
mov edi, ebx
mov ebx, dword [ecx]
cmp ebp, edx
jae 0x4c59c7
imul edx, ebp, 0x1c
add edx, ebx
mov ebx, edi
lea edi, [esp + 0x64]
mov esi, edx
call fcn.004610ca
movzx ecx, byte [esp + 0x7c]
cmp cl, 1
jne 0x4c58ad
cmp byte [esp + 0x7d], 1
jne 0x4c58ad
cmp cl, 1
mov edx, 5
jmp 0x4c58d0
cmp cl, 2
jne 0x4c58c8
cmp byte [esp + 0x7d], 2
jne 0x4c58c3
cmp cl, 1
mov edx, 6
jmp 0x4c58d0
cmp cl, 1
jmp 0x4c58cb
cmp cl, 1
mov edx, 4
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], edx
nop
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x30], esi
nop
movzx edi, bx
nop
nop
nop
jne 0x4c590b
mov dword [esp + 0x28], edi
mov ebp, dword [esp + 0x88]
mov edx, dword [ebp + 0xc]
sub edi, edx
lea edx, [esi + edi]
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
mov esi, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x54], esi
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x2c], ebp
movzx edx, byte [esp + 0x7d]
shr ebx, 0x10
cmp dl, 1
jne 0x4c5946
mov dword [esp + 0x50], ebx
mov esi, dword [esp + 0x88]
mov eax, dword [esi + 0x10]
sub ebx, eax
lea eax, [ebp + ebx]
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov ebp, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x48], ebp
mov esi, dword [esp + 0x30]
sub ebp, esi
cmp cl, 2
jne 0x4c5975
mov ecx, dword [esp + 0x88]
mov ebp, eax
mov eax, dword [ecx + 0xc]
sub edi, eax
mov eax, dword [esp + 0x48]
add eax, edi
sub eax, esi
jmp 0x4c5982
mov ecx, dword [esp + 0x88]
mov eax, ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x44], eax
mov esi, dword [esp + 0x78]
mov dword [esp + 0x48], esi
mov edi, dword [esp + 0x2c]
sub esi, edi
cmp dl, 2
jne 0x4c57ef
mov edx, dword [ecx + 0x10]
sub ebx, edx
mov edx, dword [esp + 0x48]
lea esi, [edx + ebx]
sub esi, edi
jmp 0x4c57ef
mov byte [esp + 0x27], 0
mov edx, dword [esp + 0x80]
mov eax, dword [edx]
call eax
add esp, 0x84
ret
mov eax, ebp
mov ecx, edx
call fcn.00460aa0
nop
call fcn.00433e30
add esp, 0x84
ret
call fcn.0045f610
jmp fcn.004c5740