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

Disassembly:
push 0xffffffffffffffff
push 0x522eb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x57373c]
push ebx
push esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov edx, dword [esp + 0x64]
xor ebx, ebx
push edx
mov dword [esp + 0x60], ebx
call fcn.004cbde0
add eax, 6
push ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x74]
push 0x568e80
push 0x566d98
push ebx
push eax
call fcn.004de52c
add esp, 0x14
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4cdaba
mov cl, byte [esp + 0x6c]
push edi
mov byte [esp + 0x38], cl
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov edx, dword [eax]
lea ecx, [esp + 0x48]
push ecx
mov ecx, eax
mov byte [esp + 0x64], 1
call dword [edx + 0xa0]
mov esi, eax
lea edx, [esp + 0x38]
mov byte [esp + 0x60], 2
cmp edx, esi
je 0x4cd6b6
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x4cd58a
xor edi, edi
jmp 0x4cd5a2
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
lea ecx, [esp + 0x38]
call fcn.0041f6c0
cmp edi, eax
ja 0x4cd5f0
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.004301c0
mov ecx, dword [esp + 0x4c]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.0041f790
mov ecx, esi
call fcn.0041f6c0
mov ecx, dword [esp + 0x3c]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
lea edx, [ecx + eax*2]
mov dword [esp + 0x40], edx
jmp 0x4cd6b6
mov ecx, esi
call fcn.0041f6c0
lea ecx, [esp + 0x38]
mov edi, eax
call fcn.0041f690
cmp edi, eax
ja 0x4cd65a
mov edi, dword [esi + 4]
lea ecx, [esp + 0x38]
call fcn.0041f6c0
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 4]
push ecx
lea edi, [edi + edx*2]
push edi
push eax
call fcn.004301c0
mov edx, dword [esp + 0x4c]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x38]
push edx
push eax
push edi
call fcn.0041f7c0
mov ecx, esi
call fcn.0041f6c0
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0x3c]
lea ecx, [eax + edx*2]
mov dword [esp + 0x40], ecx
jmp 0x4cd6b6
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.0041f790
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004f3128
add esp, 4
mov ecx, esi
call fcn.0041f6c0
cmp eax, ebx
jge 0x4cd687
xor eax, eax
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
shl eax, 1
push eax
call fcn.004f30ff
add esp, 4
mov dword [esp + 0x3c], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x44]
call fcn.0041f7c0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
cmp esi, edi
mov byte [esp + 0x60], 1
je 0x4cd6da
push ebx
mov ecx, esi
call fcn.004d0510
add esi, 0x16
cmp esi, edi
jne 0x4cd6c7
mov esi, dword [esp + 0x4c]
push ebp
push esi
call fcn.004f3128
mov edi, 0x14
add esp, 4
mov dword [esp + 0x78], edi
xor ebp, ebp
mov esi, dword [esp + 0x40]
test esi, esi
je 0x4cd753
mov ecx, dword [esp + 0x44]
mov eax, 0x2e8ba2e9
sub ecx, esi
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp ebx, edx
jae 0x4cd753
mov edx, dword [esi + ebp]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
add esi, ebp
push 0
push 0
push edx
mov edx, dword [esp + 0x78]
push eax
push edi
push ecx
mov ecx, dword [esp + 0x2c]
push edx
call fcn.004cbf50
fild dword [esi + 0xc]
fmul qword [str.333333]
fiadd dword [esp + 0x78]
call fcn.004dcf98
mov edi, eax
inc ebx
mov dword [esp + 0x78], edi
add ebp, 0x16
jmp 0x4cd6ef
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x74]
push eax
push ecx
mov ecx, esi
call fcn.004cbdb0
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
push 2
push edi
push 0x14
push edx
push eax
push ecx
mov ecx, esi
call fcn.004cbe20
mov dword [esp + 0x74], eax
mov dl, byte [esp + 0x74]
xor edi, edi
mov byte [esp + 0x2c], dl
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebx
mov eax, dword [ebx]
mov byte [esp + 0x68], 3
call dword [eax + 0xa4]
mov esi, eax
lea edx, [esp + 0x2c]
mov byte [esp + 0x64], 4
cmp edx, esi
je 0x4cd8d9
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x4cd7d3
xor ebp, ebp
jmp 0x4cd7db
mov ebp, dword [esi + 8]
sub ebp, eax
sar ebp, 2
lea ecx, [esp + 0x2c]
call fcn.004d01c0
cmp ebp, eax
ja 0x4cd823
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.004d0430
mov ecx, dword [esp + 0x40]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.0042d470
mov ecx, esi
call fcn.004d01c0
mov edx, dword [esp + 0x30]
lea eax, [edx + eax*4]
mov dword [esp + 0x34], eax
jmp 0x4cd8d9
mov ecx, esi
call fcn.004d01c0
lea ecx, [esp + 0x2c]
mov ebp, eax
call fcn.004d01a0
cmp ebp, eax
ja 0x4cd882
mov ebp, dword [esi + 4]
lea ecx, [esp + 0x2c]
call fcn.004d01c0
mov ecx, dword [esp + 0x30]
lea ebp, [ebp + eax*4]
mov eax, dword [esi + 4]
push ecx
push ebp
push eax
call fcn.004d0430
mov edx, dword [esp + 0x40]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x2c]
push edx
push eax
push ebp
call fcn.004d03c0
mov ecx, esi
call fcn.004d01c0
mov ecx, dword [esp + 0x30]
lea edx, [ecx + eax*4]
mov dword [esp + 0x34], edx
jmp 0x4cd8d9
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0042d470
mov edx, dword [esp + 0x30]
push edx
call fcn.004f3128
add esp, 4
mov ecx, esi
call fcn.004d01c0
cmp eax, edi
jge 0x4cd8af
xor eax, eax
shl eax, 2
push eax
call fcn.004f30ff
add esp, 4
mov dword [esp + 0x30], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x38]
call fcn.004d03c0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
push edx
lea ecx, [esp + 0x54]
mov byte [esp + 0x6c], 3
call fcn.0042d470
mov eax, dword [esp + 0x50]
push eax
call fcn.004f3128
add esp, 4
mov dword [esp + 0x1c], edi
jmp 0x4cd906
xor edi, edi
mov esi, dword [esp + 0x40]
mov ebp, 0x14
mov dword [esp + 0x78], ebp
mov dword [esp + 0x18], 0
test esi, esi
je 0x4cda4a
mov ecx, dword [esp + 0x44]
mov eax, 0x2e8ba2e9
sub ecx, esi
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edi, edx
jae 0x4cda4a
cmp dword [esp + 0x18], 0x16
jge 0x4cd996
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [edx + eax*4]
push ecx
lea ecx, [esp + 0x28]
call fcn.004f3133
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 5
call fcn.004f34f7
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 3
call fcn.004f33be
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
push 0
push 0
push edx
mov edx, dword [esp + 0x78]
push eax
push ebp
push ecx
push edx
jmp 0x4cda0f
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx]
push edi
mov ecx, ebx
lea esi, [eax + 1]
push esi
call dword [edx + 0x9c]
cmp eax, 1
je 0x4cd9e8
mov eax, dword [ebx]
push edi
push esi
mov ecx, ebx
call dword [eax + 0x78]
test eax, eax
je 0x4cd9e8
mov edx, dword [ebx]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
mov ecx, ebx
call dword [edx + 0x74]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 6
call fcn.004f34f7
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 3
call fcn.004f33be
jmp 0x4cd9f6
push 0x53b670
lea ecx, [esp + 0x14]
call fcn.004f3547
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push 0
push 1
push ecx
mov ecx, dword [esp + 0x78]
push edx
push ebp
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.004cbf50
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
fild dword [edx + esi + 0xc]
fmul qword [str.333333]
fiadd dword [esp + 0x78]
call fcn.004dcf98
mov ebp, eax
mov eax, dword [esp + 0x18]
inc edi
add eax, 0x16
mov dword [esp + 0x78], ebp
mov dword [esp + 0x18], eax
jmp 0x4cd91b
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x74]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004cbdb0
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0xd
mov dword [esp + 0x1c], eax
jl 0x4cd904
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
cmp esi, edi
mov byte [esp + 0x64], 1
pop ebp
je 0x4cda95
push 0
mov ecx, esi
call fcn.004d0530
add esi, 4
cmp esi, edi
jne 0x4cda81
mov esi, dword [esp + 0x2c]
push esi
call fcn.004f3128
xor eax, eax
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x60], al
call fcn.0041f650
pop edi
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 8]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004f33be
mov ecx, dword [esp + 0x54]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0x10