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

Disassembly:
push 0xffffffffffffffff
push 0x522f50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [0x57373c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x6c]
xor ebp, ebp
push ecx
mov ecx, esi
mov dword [esp + 0x68], ebp
mov dword [esp + 0x38], 0x14
mov dword [esp + 0x3c], 0x15e
call fcn.004cbde0
mov edx, dword [esi + 0x8e]
mov al, byte [esp + 0x74]
mov di, word [edx + 0x2c]
mov byte [esp + 0x3c], al
sub di, 2
mov dword [esp + 0x40], ebp
neg di
sbb edi, edi
mov dword [esp + 0x44], ebp
and edi, 0xa
mov dword [esp + 0x48], ebp
add edi, 0x32
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x68], 1
mov edx, dword [ecx]
call dword [edx + 0xa0]
mov esi, eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x64], 2
cmp ecx, esi
je 0x4ce063
mov ebx, dword [esi + 4]
cmp ebx, ebp
jne 0x4cdf20
mov dword [esp + 0x20], ebp
jmp 0x4cdf3a
mov ecx, dword [esi + 8]
mov eax, 0x2e8ba2e9
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x20], edx
mov ebp, dword [esp + 0x40]
test ebp, ebp
jne 0x4cdf46
xor edx, edx
jmp 0x4cdf5d
mov ecx, dword [esp + 0x44]
mov eax, 0x2e8ba2e9
sub ecx, ebp
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp dword [esp + 0x20], edx
ja 0x4cdf9d
mov eax, dword [esi + 8]
push ebp
push eax
push ebx
call fcn.004301c0
mov edx, dword [esp + 0x50]
add esp, 0xc
lea ecx, [esp + 0x3c]
push edx
push eax
call fcn.0041f790
mov ecx, esi
call fcn.0041f6c0
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0x40]
lea ecx, [eax + edx*2]
mov dword [esp + 0x44], ecx
jmp 0x4ce063
mov ecx, esi
call fcn.0041f6c0
lea ecx, [esp + 0x3c]
mov ebx, eax
call fcn.0041f690
cmp ebx, eax
ja 0x4ce007
mov ebx, dword [esi + 4]
lea ecx, [esp + 0x3c]
call fcn.0041f6c0
mov ecx, dword [esp + 0x40]
lea edx, [eax + eax*4]
push ecx
lea eax, [eax + edx*2]
lea ebx, [ebx + eax*2]
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004301c0
mov edx, dword [esp + 0x50]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x3c]
push edx
push eax
push ebx
call fcn.0041f7c0
mov ecx, esi
call fcn.0041f6c0
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0x40]
lea ecx, [eax + edx*2]
mov dword [esp + 0x44], ecx
jmp 0x4ce063
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x44]
call fcn.0041f790
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004f3128
add esp, 4
mov ecx, esi
call fcn.0041f6c0
test eax, eax
jge 0x4ce034
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 + 0x40], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x48]
call fcn.0041f7c0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
cmp esi, ebx
mov byte [esp + 0x64], 1
je 0x4ce088
push 0
mov ecx, esi
call fcn.004d0510
add esi, 0x16
cmp esi, ebx
jne 0x4ce074
mov esi, dword [esp + 0x50]
push esi
call fcn.004f3128
mov ecx, dword [esp + 0x78]
mov eax, edi
cdq
mov ebx, dword [esp + 0x44]
sub eax, edx
mov dword [esp + 0x28], ecx
mov edx, eax
add esp, 4
xor ecx, ecx
sar edx, 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
jmp 0x4ce0b6
mov edx, dword [esp + 0x18]
movsx eax, cx
imul edx, eax
mov ecx, dword [esp + eax*4 + 0x34]
mov eax, dword [esp + 0x80]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], ecx
add edx, dword [esp + 0x7c]
cmp eax, edx
jle 0x4ce2d0
xor edi, edi
test ebx, ebx
je 0x4ce2bd
mov ecx, dword [esp + 0x44]
mov eax, 0x2e8ba2e9
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edi, edx
jae 0x4ce2bd
lea ecx, [esp + 0x10]
call fcn.004f3349
mov eax, dword [esp + 0x40]
lea ecx, [edi + edi*4]
push 0
push 0
lea edx, [edi + ecx*2]
mov ecx, dword [esp + 0x2c]
lea esi, [eax + edx*2]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], esi
mov eax, dword [esi]
push eax
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.004cbf50
mov ebx, dword [esp + 0x40]
mov ebp, eax
test ebx, ebx
mov dword [esp + 0x74], ebp
jne 0x4ce154
xor edx, edx
jmp 0x4ce16b
mov ecx, dword [esp + 0x44]
mov eax, 0x2e8ba2e9
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
dec edx
cmp edi, edx
jne 0x4ce1a5
fild dword [esi + 0xc]
push 2
fmul qword [str.333333]
fiadd dword [esp + 0x18]
call fcn.004dcf98
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
add ebp, 4
push ecx
mov ecx, dword [esp + 0x28]
push ebp
push edx
push eax
call fcn.004cbe20
mov ebx, dword [esp + 0x40]
cmp word [esp + 0x20], 0
jne 0x4ce1c7
mov esi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x80]
lea ebp, [ecx + esi]
cmp ebp, eax
jle 0x4ce1d9
mov ebp, eax
jmp 0x4ce1d9
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x7c]
mov ebp, dword [esp + 0x80]
lea esi, [edx + eax]
cmp esi, ebp
jge 0x4ce29d
lea ecx, [esp + 0x10]
call fcn.004f3349
test edi, edi
jne 0x4ce236
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4ce1fa
xor edx, edx
jmp 0x4ce211
mov ecx, dword [esp + 0x44]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [edx - 1]
xor eax, eax
xor edx, edx
div ecx
test edx, edx
jne 0x4ce236
movsx edx, si
push edx
lea eax, [esp + 0x14]
push 0x563178
push eax
call fcn.004f0a68
add esp, 0xc
jmp 0x4ce266
mov ecx, dword [esp + 0x78]
push edi
movsx eax, si
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x34]
push eax
call dword [edx + 0x74]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 3
call fcn.004f34f7
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 1
call fcn.004f33be
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x14]
push 0
push 1
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push eax
push ecx
mov ecx, dword [esp + 0x34]
push edx
call fcn.004cbf50
inc esi
mov dword [esp + 0x74], eax
cmp esi, ebp
jl 0x4ce1e1
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x30]
fild dword [eax + 0xc]
fmul qword [str.333333]
fiadd dword [esp + 0x14]
call fcn.004dcf98
mov dword [esp + 0x14], eax
inc edi
jmp 0x4ce0dd
mov ecx, dword [esp + 0x20]
inc ecx
cmp cx, 2
mov dword [esp + 0x20], ecx
jl 0x4ce0b2
mov esi, dword [esp + 0x44]
mov byte [esp + 0x64], 0
cmp ebx, esi
je 0x4ce2ef
mov ecx, ebx
call fcn.004f33be
add ebx, 0x16
cmp ebx, esi
jne 0x4ce2dd
mov ebx, dword [esp + 0x40]
push ebx
call fcn.004f3128
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x64], 0xffffffff
call fcn.004f33be
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0x18