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

Disassembly:
push 0xffffffffffffffff
push 0x522fe3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [0x57373c]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x64]
xor ebx, ebx
push ecx
mov ecx, ebp
mov dword [esp + 0x60], ebx
call fcn.004cbde0
mov edi, eax
lea edx, [esp + 0x70]
add edi, 6
mov ecx, ebp
push edi
push edx
mov dword [esp + 0x20], edi
call fcn.004cbdb0
mov eax, dword [esp + 0x70]
push fcn.0041f650
push 0x42c640
push 2
lea ecx, [esp + 0x40]
push 0x10
push ecx
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x30], eax
call fcn.004ddf8a
mov edx, dword [0x57ce98]
push ebx
mov byte [esp + 0x60], 1
mov eax, dword [edx + 0x40a]
lea ecx, [edx + 0x40a]
lea edx, [esp + 0x28]
push edx
call dword [eax + 0xb0]
mov esi, eax
lea eax, [esp + 0x34]
mov byte [esp + 0x5c], 2
cmp eax, esi
je 0x4ceaf0
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4ce9dc
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ebx, edx
lea ecx, [esp + 0x34]
call fcn.0041f6c0
cmp ebx, eax
ja 0x4cea2a
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.004301c0
mov ecx, dword [esp + 0x48]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.0041f790
mov ecx, esi
call fcn.0041f6c0
mov ecx, dword [esp + 0x38]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
lea edx, [ecx + eax*2]
mov dword [esp + 0x3c], edx
jmp 0x4ceaf0
mov ecx, esi
call fcn.0041f6c0
lea ecx, [esp + 0x34]
mov ebx, eax
call fcn.0041f690
cmp ebx, eax
ja 0x4cea94
mov ebx, dword [esi + 4]
lea ecx, [esp + 0x34]
call fcn.0041f6c0
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 4]
push ecx
lea ebx, [ebx + edx*2]
push ebx
push eax
call fcn.004301c0
mov edx, dword [esp + 0x48]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x34]
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 + 0x38]
lea ecx, [eax + edx*2]
mov dword [esp + 0x3c], ecx
jmp 0x4ceaf0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x3c]
call fcn.0041f790
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004f3128
add esp, 4
mov ecx, esi
call fcn.0041f6c0
test eax, eax
jge 0x4ceac1
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 + 0x38], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x40]
call fcn.0041f7c0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
cmp esi, ebx
mov byte [esp + 0x5c], 1
je 0x4ceb15
push 0
mov ecx, esi
call fcn.004d0510
add esi, 0x16
cmp esi, ebx
jne 0x4ceb01
mov esi, dword [esp + 0x28]
push esi
call fcn.004f3128
mov ecx, dword [0x57ce98]
add esp, 4
add ecx, 0x40a
lea eax, [esp + 0x24]
push 1
push eax
mov edx, dword [ecx]
call dword [edx + 0xb0]
mov esi, eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 3
cmp ecx, esi
je 0x4cec83
mov eax, dword [esi + 4]
test eax, eax
jne 0x4ceb57
xor ebx, ebx
jmp 0x4ceb6f
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 ebx, edx
lea ecx, [esp + 0x44]
call fcn.0041f6c0
cmp ebx, eax
ja 0x4cebbd
mov edx, dword [esp + 0x48]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call fcn.004301c0
mov ecx, dword [esp + 0x58]
add esp, 0xc
push ecx
push eax
lea ecx, [esp + 0x4c]
call fcn.0041f790
mov ecx, esi
call fcn.0041f6c0
mov ecx, dword [esp + 0x48]
lea edx, [eax + eax*4]
lea eax, [eax + edx*2]
lea edx, [ecx + eax*2]
mov dword [esp + 0x4c], edx
jmp 0x4cec83
mov ecx, esi
call fcn.0041f6c0
lea ecx, [esp + 0x44]
mov ebx, eax
call fcn.0041f690
cmp ebx, eax
ja 0x4cec27
mov ebx, dword [esi + 4]
lea ecx, [esp + 0x44]
call fcn.0041f6c0
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov ecx, dword [esp + 0x48]
mov eax, dword [esi + 4]
push ecx
lea ebx, [ebx + edx*2]
push ebx
push eax
call fcn.004301c0
mov edx, dword [esp + 0x58]
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x44]
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 + 0x48]
lea ecx, [eax + edx*2]
mov dword [esp + 0x4c], ecx
jmp 0x4cec83
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.0041f790
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004f3128
add esp, 4
mov ecx, esi
call fcn.0041f6c0
test eax, eax
jge 0x4cec54
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 + 0x48], eax
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
push eax
push ecx
push esi
lea ecx, [esp + 0x50]
call fcn.0041f7c0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 1
call fcn.0041f790
mov eax, dword [esp + 0x28]
push eax
call fcn.004f3128
mov ebx, dword [esp + 0x6c]
add esp, 4
xor esi, esi
jmp 0x4cecb4
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x14]
call fcn.004f3349
test esi, esi
jle 0x4ced17
mov eax, dword [esp + 0x38]
lea edx, [esi + esi*4]
lea edi, [esi + edx*2]
shl edi, 1
mov ecx, dword [edi + eax]
mov eax, dword [edi + eax - 0x16]
push ecx
push eax
call fcn.004ddd30
add esp, 8
test eax, eax
je 0x4ced13
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x10]
push 0
mov edi, dword [edi + eax]
mov eax, dword [esp + 0x68]
push 0
push edi
push ecx
push edx
push ebx
push eax
mov ecx, ebp
call fcn.004cbf50
mov dword [esp + 0x70], eax
jmp 0x4ced24
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x70]
push edi
push ecx
mov ecx, ebp
call fcn.004cbdb0
mov ecx, dword [esp + 0x48]
lea edx, [esi + esi*4]
push 0
push 0
lea eax, [esi + edx*2]
mov edx, dword [esp + 0x78]
lea edi, [ecx + eax*2]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x28], edi
mov eax, dword [edi]
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push ebx
push ecx
mov ecx, ebp
call fcn.004cbf50
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4ced63
xor edx, edx
jmp 0x4ced7a
mov ecx, dword [esp + 0x3c]
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
dec edx
cmp esi, edx
jne 0x4cedc5
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x64]
push 2
push ecx
add edx, 4
push 0x14
push edx
push ebx
push eax
mov ecx, ebp
call fcn.004cbe20
mov ecx, dword [edi + 0xc]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x64]
add ecx, edi
push 2
push ecx
add edx, 4
push 0x14
push edx
push ebx
push eax
mov ecx, ebp
call fcn.004cbe20
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
cmp edi, eax
jge 0x4cee93
lea ecx, [esp + 0x14]
call fcn.004f3349
test esi, esi
jne 0x4cee27
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4cedee
xor edx, edx
jmp 0x4cee05
mov ecx, dword [esp + 0x3c]
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 0x4cee27
push edi
lea edx, [esp + 0x18]
push 0x563178
push edx
call fcn.004f0a68
add esp, 0xc
jmp 0x4cee62
mov eax, dword [0x57ce98]
push esi
mov edx, dword [eax + 0x40a]
lea ecx, [eax + 0x40a]
lea eax, [edi + 1]
push eax
lea eax, [esp + 0x70]
push eax
call dword [edx + 0x74]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 4
call fcn.004f34f7
lea ecx, [esp + 0x68]
mov byte [esp + 0x5c], 1
call fcn.004f33be
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
push 0
push 1
push ecx
mov ecx, dword [esp + 0x70]
push edx
push eax
push ebx
push ecx
mov ecx, ebp
call fcn.004cbf50
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
inc edi
cmp edi, eax
jl 0x4cedd5
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x10]
add edx, eax
inc esi
cmp esi, 9
mov dword [esp + 0x10], edx
jl 0x4cecb0
mov esi, dword [esp + 0x70]
push fcn.0041f650
push 2
lea ecx, [esp + 0x3c]
push 0x10
push ecx
mov byte [esp + 0x6c], 0
call fcn.004ddeac
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004f33be
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 0x18