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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
and dword [ebp - 0xc], 0
push 4
mov edi, dword [esi + 0xc]
mov eax, dword [esi]
add edi, 0x38
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
mov dword [ebp - 0x20], edi
mov eax, dword [eax + 0x64]
movsx ebx, word [edi + 2]
mov dword [ebp - 0x24], eax
mov eax, ebx
shl eax, 3
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 8]
mov dword [ebx + eax], ecx
mov ecx, ebx
mov dword [ecx + eax + 4], edx
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x50]
mov dword [ebx + eax + 8], ecx
mov ecx, ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ecx + eax + 0xc], edx
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0xb8]
mov dword [eax + ebx*8 + 0x10], ecx
mov dword [eax + ebx*8 + 0x14], edx
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0xbc]
mov edx, dword [esi + 0xc0]
mov dword [eax + ebx*8 + 0x18], ecx
xor ecx, ecx
mov dword [eax + ebx*8 + 0x1c], edx
mov eax, dword [edi + 8]
mov byte [ebx + eax], cl
mov eax, dword [edi + 8]
mov byte [eax + ebx + 1], cl
mov eax, dword [edi + 8]
mov byte [eax + ebx + 2], cl
mov eax, dword [edi + 8]
mov byte [eax + ebx + 3], cl
mov edx, dword [esi]
pop eax
add ebx, eax
mov dword [ebp - 0x1c], ebx
test dword [edx + 4], 0x7fff0000
jne 0x10085d32
test dword [edx + 8], 0x8000
je 0x10085dc8
lea eax, [ebp - 0x10]
push eax
push ecx
push ebx
push ecx
push 8
push dword [ebp - 0x24]
call fcn.10074405
add esp, 0x18
mov ecx, eax
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0xc], ecx
jne 0x10086107
push ebx
push ecx
push edi
push dword [esi + 0x14]
push dword [esi]
call fcn.10086d7e
mov edx, dword [esi]
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
test byte [edx + 0x2e4], 2
jne 0x10085d94
mov edx, dword [ebp - 8]
mov eax, dword [ecx + ebx*8 - 0x18]
sub eax, dword [edx + ecx]
add eax, 0x20
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
mov edx, dword [esi]
sar eax, 6
mov dword [esi + 0x3c], eax
test byte [edx + 0x2e4], 0x10
jne 0x10085dbc
mov eax, dword [ecx + ebx*8 - 8]
sub eax, dword [ecx + ebx*8 - 0x10]
add eax, 0x20
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
mov edx, dword [esi]
sar eax, 6
mov dword [esi + 0xb0], eax
cmp dword [ebp - 0x10], 0
jne 0x10086107
xor ecx, ecx
test byte [esi + 0x10], 2
jne 0x10085dff
push ecx
push ecx
lea eax, [esi + 0x78]
push edi
push eax
call fcn.1008b76f
movzx eax, word [esi + 0x80]
lea eax, [eax*8 + 0x20]
push eax
push dword [esi + 0x88]
push dword [esi + 0x8c]
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [esi]
add esp, 0x1c
mov edi, dword [edi + 4]
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
test byte [esi + 0x10], 1
lea eax, [edi + ebx*8]
mov dword [ebp - 0x18], eax
jne 0x10085f35
test dword [edx + 4], 0x7fff0000
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], eax
jne 0x10085eb2
test dword [edx + 8], 0x8000
jne 0x10085eb2
cmp edi, dword [ebp - 0x18]
jae 0x10085f35
mov esi, dword [ebp - 0x18]
mov eax, dword [edi]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 4], eax
add edi, 8
cmp edi, esi
jb 0x10085e4a
jmp 0x10085f32
cmp edi, dword [ebp - 0x18]
jae 0x10085f35
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebx]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add eax, 0x20
sar eax, 6
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
lea ebx, [ebx + 8]
add eax, 0x20
sar eax, 6
mov dword [edi + 4], eax
add edi, 8
cmp edi, esi
jb 0x10085ebd
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test byte [eax + 0x2e4], 2
je 0x10085fa9
test byte [esi + 0x10], 2
jne 0x10085fa9
mov eax, dword [esi + 0x44]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x4c]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x4c], eax
jmp 0x10085fd0
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 8]
mov eax, dword [edx + 4]
mov ecx, dword [edi + eax]
mov eax, dword [edi + eax + 4]
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], eax
mov eax, dword [edx + 4]
mov ecx, dword [eax + ebx*8 - 0x18]
mov eax, dword [eax + ebx*8 - 0x14]
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], eax
mov eax, dword [esi]
test byte [eax + 0x2e4], 0x10
je 0x100860b9
test byte [esi + 0x10], 2
jne 0x100860b9
mov eax, dword [esi + 0xb4]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0xb4], eax
mov eax, dword [esi + 0xb8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0xb8], eax
mov eax, dword [esi + 0xbc]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0xbc], eax
mov eax, dword [esi + 0xc0]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
jmp 0x100860e1
mov eax, dword [edx + 4]
mov ecx, dword [eax + ebx*8 - 0x10]
mov eax, dword [eax + ebx*8 - 0xc]
mov dword [esi + 0xb4], ecx
mov dword [esi + 0xb8], eax
mov eax, dword [edx + 4]
mov ecx, dword [eax + ebx*8 - 8]
mov eax, dword [eax + ebx*8 - 4]
mov dword [esi + 0xbc], ecx
test byte [esi + 0x10], 2
mov dword [esi + 0xc0], eax
jne 0x10086104
push 4
pop eax
add word [esi + 0x80], ax
push 0
push esi
call fcn.100845fc
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
push dword [ebp - 0x24]
call fcn.10074327
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret