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

Disassembly:
mov ecx, dword [0x5f91cc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4cff0c
sub esp, 0x74
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x9c]
test ecx, ecx
ja 0x4cfb15
mov ecx, dword [eax + 0x7c]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0x80]
imul edx, dword [eax + 0x78]
mov dword [esp + 0x48], edx
mov ebx, dword [esp + 0x7c]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0049bb40
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4cfaff
lea eax, [0x4d9ce0]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044a780
mov eax, dword [esp + 0xc]
mov dword [esp + 0x70], eax
lea ecx, [0x4e30a0]
mov dword [esp], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044a780
mov eax, dword [esp + 0xc]
mov dword [esp + 0x6c], eax
xor ecx, ecx
jmp 0x4cfb4b
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x74
ret
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x74
ret
mov ecx, dword [esp + 0x40]
lea edx, [ecx + ecx*2]
mov eax, dword [esp + 0x6c]
lea edi, [eax + edx*4]
lea esi, [esp + 0x2c]
call fcn.00463762
mov ecx, dword [esp + 0x40]
inc ecx
mov edx, dword [esp + 0x48]
cmp ecx, edx
jge 0x4cfbcd
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
lea eax, [0x51c960]
mov dword [esp], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], ecx
lea edx, [0x51cc58]
mov dword [esp + 8], edx
lea ebx, [0x5f90a0]
mov dword [esp + 0xc], ebx
lea ebp, [0x4da220]
mov dword [esp + 0x10], ebp
lea esi, [esp + 0x2c]
mov dword [esp + 0x14], esi
call fcn.0047d580
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4cfb2f
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
add esp, 0x74
ret
xor ecx, ecx
jmp 0x4cfbe0
mov dword [edx + ecx*4], eax
mov ebx, dword [esp + 0x6c]
lea eax, [ebx + 0xc]
inc ecx
mov edx, dword [esp + 0x48]
cmp ecx, edx
jge 0x4cfc3f
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x6c], eax
lea edi, [esp + 0x20]
mov esi, eax
call fcn.00463762
lea ecx, [0x4e2f80]
mov dword [esp], ecx
call fcn.0040c850
mov eax, dword [esp + 4]
mov dword [esp + 0x64], eax
xor ecx, ecx
jmp 0x4cfc94
mov ecx, dword [0x5f9270]
test ecx, ecx
jne 0x4cfc28
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x70]
jmp 0x4cfbd1
call fcn.004630b0
mov dword [edi], eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x70]
mov ebx, dword [edx + ecx*4]
mov dword [edi + 4], ebx
jmp 0x4cfbd1
mov eax, dword [esp + 0x78]
mov dword [eax + 0xc0], edx
mov dword [eax + 0xc4], edx
mov ecx, dword [0x5f9270]
test ecx, ecx
jne 0x4cfc5f
mov ecx, dword [esp + 0x70]
jmp 0x4cfc73
call fcn.004630b0
mov ecx, dword [esp + 0x70]
mov dword [edi], ecx
mov edx, dword [eax + 0xbc]
mov dword [edi + 4], edx
mov dword [eax + 0xbc], ecx
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x74
ret
inc ecx
cmp ecx, 6
jge 0x4cfc14
movzx edx, word [esp + ecx*2 + 0x20]
test dx, dx
je 0x4cfc93
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x38]
lea edx, [0x4d9d20]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
call fcn.0044a780
mov eax, dword [esp + 0x3c]
lea ecx, [eax + eax*2]
shl ecx, 2
mov edx, ecx
sar ecx, 0x1f
mov ebx, dword [esp + 0x38]
movzx ebp, word [esp + ebx*2 + 0x20]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x68], esi
mov edi, dword [esp + 0x78]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x58], eax
mov edi, dword [esp + 0x7c]
mov dword [esp], edi
mov edi, dword [esp + 0x54]
add edx, edi
adc ecx, 0
add ebp, edx
mov dword [esp + 4], ebp
adc ecx, 0
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
call fcn.0049bb40
mov eax, dword [esp + 0x58]
mov ecx, eax
mov edx, dword [esp + 0x68]
xor ebx, ebx
jmp 0x4cfd79
mov eax, dword [esp + 0x38]
lea ebp, [eax + eax*2]
mov esi, eax
mov eax, dword [esp + 0x64]
mov dword [eax + ebp*4 + 4], ebx
mov dword [eax + ebp*4 + 8], ecx
mov ecx, dword [0x5f9270]
test ecx, ecx
je 0x4cfd5b
call fcn.004630b0
mov dword [edi], edx
mov ecx, dword [eax + ebp*4]
mov dword [edi + 4], ecx
mov dword [eax + ebp*4], edx
mov ecx, esi
jmp 0x4cfc93
mov dword [edx + eax*4 - 4], ebx
movzx ebp, byte [ebx + 1]
mov ebx, ebp
mov ebp, dword [esp + 0x44]
sub ebp, ebx
mov ebx, eax
mov eax, ebp
test eax, eax
jle 0x4cfd2f
mov dword [esp + 0x60], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], eax
lea eax, [0x4e64a0]
mov dword [esp], eax
call fcn.0040c850
mov eax, dword [esp + 4]
mov dword [esp + 0x5c], eax
lea ecx, [0x51c960]
mov dword [esp], ecx
mov edx, dword [esp + 0x7c]
mov dword [esp + 4], edx
lea ebx, [0x51cc58]
mov dword [esp + 8], ebx
lea ebp, [0x5f90a0]
mov dword [esp + 0xc], ebp
lea esi, [0x4dace0]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
call fcn.0047d580
lea eax, [0x51c960]
mov dword [esp], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], ecx
lea edx, [0x51cc58]
mov dword [esp + 8], edx
lea ebx, [0x5f90a0]
mov dword [esp + 0xc], ebx
lea ebp, [0x4dace0]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x5c]
lea edi, [esi + 1]
mov dword [esp + 0x14], edi
call fcn.0047d580
mov eax, dword [esp + 0x5c]
movzx ecx, byte [eax]
lea edx, [0x4e0200]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044a780
mov eax, dword [esp + 0x5c]
movzx ecx, byte [eax]
mov edx, dword [esp + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov ecx, dword [0x5f9270]
test ecx, ecx
je 0x4cfe5f
call fcn.004630b0
mov dword [edi], edx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov dword [eax + 4], edx
lea ecx, [0x51c960]
mov dword [esp], ecx
mov edx, dword [esp + 0x7c]
mov dword [esp + 4], edx
lea ebx, [0x51cc58]
mov dword [esp + 8], ebx
lea ebp, [0x5f90a0]
mov dword [esp + 0xc], ebp
lea esi, [0x4dcbe0]
mov dword [esp + 0x10], esi
lea edi, [eax + 4]
mov dword [esp + 0x14], edi
call fcn.0047d580
mov eax, dword [esp + 0x4c]
inc eax
mov ecx, dword [esp + 0x50]
cmp ecx, eax
jb 0x4cfeb0
mov edx, dword [esp + 0x60]
jmp 0x4cfee2
mov edx, dword [esp + 0x60]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x4d9d20]
mov dword [esp + 0x10], eax
call fcn.0044a840
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [0x5f9270]
test ebx, ebx
jne 0x4cfef5
mov ebx, dword [esp + 0x5c]
jmp 0x4cfd65
call fcn.004630b0
mov ebx, dword [esp + 0x5c]
mov dword [edi], ebx
mov ebp, dword [edx + eax*4 - 4]
mov dword [edi + 4], ebp
jmp 0x4cfd65
call fcn.00461ca0
jmp fcn.004cfa50