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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4cd8d9
sub esp, 0x60
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
mov byte [esp + 8], 0x2f
call fcn.004029c0
mov ecx, dword [esp + 0xc]
test ecx, ecx
jl 0x4cd84c
mov edx, dword [esp + 0x68]
cmp ecx, edx
ja 0x4cd8d3
lea eax, [ecx + 1]
cmp eax, edx
ja 0x4cd8cc
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004ccc60
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x44]
sub eax, ecx
mov dword [esp + 0x24], eax
mov ebx, eax
neg eax
sar eax, 0x1f
and ecx, eax
mov eax, dword [esp + 0x64]
add ecx, eax
mov ebp, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
test ebp, ebp
je 0x4cd816
mov dword [esp + 0x48], eax
mov eax, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x34], esi
mov dword [esp], ecx
mov dword [esp + 4], ebx
call fcn.004d3880
mov eax, dword [esp + 8]
movzx ecx, byte [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x58]
test ebx, ebx
je 0x4cd678
test cl, cl
je 0x4cd678
mov ecx, dword [esp + 0x24]
cmp ecx, edx
je 0x4cd6f8
lea eax, [0x645740]
mov dword [esp], eax
call fcn.0040b4f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x670cb3]
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x8326a0]
test ecx, ecx
jne 0x4cd6e6
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea ecx, [0x6c82f0]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
add esp, 0x60
ret
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x64]
call fcn.0045ace0
mov eax, ecx
jmp 0x4cd6b1
test eax, eax
jl 0x4cd678
mov ecx, dword [esp + 0x30]
shl ecx, 3
cmp eax, ecx
jg 0x4cd678
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004caf70
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x58]
mov dword [esp], ebx
mov ebp, dword [esp + 0x34]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x38]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call fcn.004cb420
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x40], edx
lea ebx, [0x6456e0]
mov dword [esp], ebx
call fcn.0040b4f0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x44]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x40]
mov dword [edi + 8], eax
mov eax, dword [0x8326a0]
test eax, eax
jne 0x4cd80b
mov ecx, dword [esp + 0x5c]
mov dword [edi], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x14], ecx
mov ecx, dword [0x8326a0]
test ecx, ecx
jne 0x4cd7f5
mov eax, dword [esp + 0x54]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x60
ret
lea ecx, [edi + 0xc]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x54]
call fcn.0045ace0
mov edi, edx
jmp 0x4cd7c2
mov eax, dword [esp + 0x5c]
call fcn.0045ace0
jmp 0x4cd7a3
mov dword [esp + 0x50], ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
call fcn.004cced0
mov ebp, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x24]
mov eax, 0x10
mov dword [esp + 0x30], eax
jmp 0x4cd63b
lea eax, [0x645740]
mov dword [esp], eax
call fcn.0040b4f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0xc
lea ecx, [0x670cb3]
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x8326a0]
test ecx, ecx
jne 0x4cd8ba
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea ecx, [0x6c82f0]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
add esp, 0x60
ret
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x64]
call fcn.0045ace0
mov eax, ecx
jmp 0x4cd885
mov ecx, edx
call fcn.0045adc0
call fcn.0045ad80
nop
call fcn.00459790
jmp fcn.004cd590