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

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebx
mov ecx, dword [esp + 0x40]
push ebp
push esi
mov esi, dword [eax + 8]
mov eax, dword [eax + 0x6c]
push edi
and eax, 4
mov dword [esp + 0x1c], eax
je 0x1008cd80
lea edi, [ecx + 0x124]
lea edx, [ecx + 0x1b4]
mov dword [esp + 0x34], edi
jmp 0x1008cd8c
mov edi, ecx
lea edx, [ecx + 0x194]
mov dword [esp + 0x34], edi
mov ecx, dword [ecx + 0xec]
dec ecx
cmp ecx, 4
ja 0x1008db05
jmp dword [ecx*4 + 0x5ade23c]
mov eax, dword [esp + 0x50]
xor ebx, ebx
sub edi, edx
mov dword [esp + 0x24], ebx
lea ecx, [eax + eax]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
lea ecx, [edx + 4]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], edi
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
mov ebp, dword [edx + ebx*8]
mov ecx, dword [ecx + eax]
mov edi, dword [eax - 4]
mov edx, dword [eax]
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edx
je 0x1008dfaa
mov eax, ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
add edx, eax
mov eax, ecx
mov dword [esp + 0x14], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
add edx, eax
mov eax, edi
mov dword [esp + 0x10], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
add edx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], edx
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
add edx, eax
mov eax, ecx
or eax, ebp
mov dword [esp + 0x24], edx
test al, 3
je 0x1008dea7
mov eax, dword [esp + 0x54]
mov edx, ebx
sar edx, 1
and ebx, 1
lea eax, [edx + eax*2]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
add edx, ebx
shl eax, 3
mov edi, eax
mov dword [esp + 0x28], ebx
sub edi, eax
lea eax, [ecx + eax*4]
sar eax, 2
imul edi, esi
imul eax, esi
shl edx, 3
mov dword [esp + 0x18], edx
add edi, dword [esp + 0x80]
lea edx, [ebp + edx*4]
mov ebx, dword [0x5b80304]
sar edx, 2
and ecx, 3
add eax, edx
mov edx, dword [esp + 0x5c]
and ebp, 3
shl ecx, 2
add eax, dword [edx]
or ecx, ebp
cmp ecx, 0xf
ja 0x1008de96
jmp dword [ecx*4 + 0x5ade2d0]
mov ebp, dword [esp + 0x80]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x40]
jmp 0x1008defe
mov edx, dword [esp + 0x54]
mov eax, ebx
sar eax, 1
lea edi, [eax + edx*2]
mov edx, dword [esp + 0x18]
mov eax, ebx
and eax, 1
mov dword [esp + 0x28], eax
add eax, edx
shl eax, 3
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov ecx, eax
lea eax, [edi*8]
sar ecx, 2
add ecx, eax
mov eax, ebp
imul ecx, esi
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x18]
mov ebp, eax
mov eax, dword [esp + 0x5c]
sar ebp, 2
add edx, ecx
mov ecx, dword [eax]
add ebp, edx
add ebp, ecx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ecx, eax
or ecx, edx
test cl, 3
je 0x1008df71
push 0
mov ecx, dword [esp + 0x84]
push esi
push eax
mov eax, dword [esp + 0x54]
lea edx, [ecx + 0x10]
push eax
lea eax, [edi*8]
push eax
mov eax, dword [esp + 0x2c]
push eax
lea eax, [ecx + 0x30]
push eax
lea eax, [ecx + 0x20]
push eax
mov dword [esp + 0x6c], edx
push edx
mov edx, dword [esp + 0x90]
mov eax, dword [edx]
mov edx, edi
imul edx, esi
push eax
mov eax, dword [esp + 0x78]
neg eax
add eax, eax
sub eax, edx
mov edx, dword [esp + 0x50]
sub eax, edx
lea ecx, [ecx + eax*8 + 0x10]
push ecx
call fcn.1008e720
mov ecx, dword [esp + 0x78]
add esp, 0x2c
jmp 0x1008e06a
cdq
and edx, 3
add eax, edx
mov ecx, eax
lea eax, [edi*8]
sar ecx, 2
add ecx, eax
mov eax, dword [esp + 0x48]
imul ecx, esi
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x6c]
sar eax, 2
add ecx, eax
mov eax, dword [edx]
add ecx, eax
mov eax, dword [esp + 0x18]
add ecx, eax
jmp 0x1008e06a
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add eax, ebp
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
add edx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x4c]
add eax, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, ebx
add edi, ecx
push esi
sar eax, 1
mov dword [esp + 0x14], edi
push ecx
lea edi, [eax + edx*2]
mov edx, dword [esp + 0x20]
mov eax, ebx
push ebp
and eax, 1
push 8
mov dword [esp + 0x38], eax
add eax, edx
mov edx, dword [esp + 0x74]
push edi
mov dword [esp + 0x54], eax
push eax
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
mov edx, dword [ecx]
mov ecx, dword [eax]
push edx
push ecx
call fcn.1008e310
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x68]
mov ebp, eax
mov eax, dword [esp + 0x70]
push esi
push edx
mov edx, dword [esp + 0xa8]
push eax
push 8
push edi
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0xb4]
push eax
mov eax, dword [esp + 0xb4]
mov edx, dword [ecx]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0xb4]
push ecx
mov eax, dword [edx]
push eax
call fcn.1008e310
add esp, 0x50
mov ecx, eax
imul edi, esi
mov edx, dword [esp + 0x58]
push esi
push ecx
mov ecx, dword [esp + 0x58]
push ebp
mov ebp, dword [esp + 0x34]
lea eax, [ecx + ecx]
add edi, eax
mov dword [esp + 0x24], eax
mov eax, dword [edx]
mov edx, dword [esp + 0x3c]
add edi, ebp
lea ecx, [eax + edi*8]
push ecx
push edx
call dword [0x5be977c]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add esp, 0x14
inc ebx
add edx, 8
add ecx, 0x80
cmp ebx, 4
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
jl 0x1008db3b
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xf
sar eax, 3
add eax, dword [ecx*4 + 0x5b45208]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov edx, eax
and edx, 0xf
sar eax, 3
add eax, dword [edx*4 + 0x5b45208]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov ecx, eax
and ecx, 0xf
sar eax, 3
add eax, dword [ecx*4 + 0x5b45208]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x24]
mov edx, eax
and edx, 0xf
sar eax, 3
add eax, dword [edx*4 + 0x5b45208]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x80]
mov edi, esi
imul esi, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x50]
shr edi, 1
lea ebp, [ecx*8]
mov ecx, dword [esp + 0x10]
push edi
push 0
lea ebx, [eax*8]
push edi
lea eax, [edx + 8]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push ebp
mov edx, dword [ecx + 4]
push ebx
shl esi, 3
shr esi, 1
push edx
push eax
add esi, ebx
call fcn.1008e3c0
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x90]
add esp, 0x20
push eax
mov eax, dword [esp + 0x54]
push 0
push edi
push eax
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [esp + 0x98]
push ebp
push ebx
push eax
push ecx
call fcn.1008e3c0
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0xa4]
add esp, 0x20
add ecx, 0x200
push eax
mov eax, dword [edx + 4]
add eax, esi
push eax
push ecx
call dword [0x5be977c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x70]
add esp, 0x14
push edi
push 0
push edi
push edx
mov edx, dword [ecx + 8]
push eax
mov eax, dword [esp + 0x94]
push ebp
push ebx
add eax, 8
push edx
push eax
call fcn.1008e3c0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
add esp, 0x20
push eax
mov eax, dword [esp + 0x74]
push 0
push edi
push ecx
push edx
push ebp
push ebx
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0xa0]
push ecx
push edx
call fcn.1008e3c0
add esp, 0x20
mov edx, dword [esp + 0x84]
add edx, 0x280
push eax
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 8]
add ecx, esi
push ecx
push edx
call dword [0x5be977c]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret