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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], 0
mov esi, dword [edi + 0xc]
mov eax, dword [edi]
add esi, 0x38
mov dword [ebp - 0x1c], esi
mov edx, dword [eax + 0x64]
movsx ebx, word [esi + 2]
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0x44]
mov dword [ebp - 0x28], edx
mov dword [ecx + ebx*8], eax
mov eax, dword [edi + 0x48]
mov dword [ecx + ebx*8 + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0x4c]
mov dword [ecx + ebx*8 + 8], eax
mov eax, dword [edi + 0x50]
mov dword [ecx + ebx*8 + 0xc], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0xb4]
mov dword [ecx + ebx*8 + 0x10], eax
mov eax, dword [edi + 0xb8]
mov dword [ecx + ebx*8 + 0x14], eax
mov ecx, dword [esi + 4]
mov eax, dword [edi + 0xbc]
mov dword [ecx + ebx*8 + 0x18], eax
mov eax, dword [edi + 0xc0]
mov dword [ecx + ebx*8 + 0x1c], eax
mov eax, dword [esi + 8]
mov byte [ebx + eax], 0
mov eax, dword [esi + 8]
mov byte [eax + ebx + 1], 0
mov eax, dword [esi + 8]
mov byte [eax + ebx + 2], 0
mov eax, dword [esi + 8]
mov byte [eax + ebx + 3], 0
add ebx, 4
mov ecx, dword [edi]
mov dword [ebp - 0x14], ebx
test dword [ecx + 4], 0x7fff0000
jne 0x10139deb
test dword [ecx + 8], 0x8000
je 0x10139e80
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push 0
push 8
push edx
call fcn.1012b2a0
add esp, 0x18
mov ecx, eax
cmp dword [ebp - 0xc], 0
mov dword [ebp - 8], ecx
jne 0x1013a1bc
push ebx
push ecx
push esi
push dword [edi + 0x14]
push dword [edi]
call fcn.1013cbc0
mov ecx, dword [edi]
add esp, 0x14
mov dword [ebp - 0xc], eax
mov edx, dword [ecx + 0x2e4]
test dl, 2
jne 0x10139e51
mov edx, dword [ebp - 8]
mov eax, dword [edx + ebx*8 - 0x18]
sub eax, dword [edx + ebx*8 - 0x20]
add eax, 0x20
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
mov dword [edi + 0x3c], eax
mov edx, dword [ecx + 0x2e4]
mov ecx, dword [ebp - 8]
test dl, 0x10
jne 0x10139e76
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
sar eax, 6
mov dword [edi + 0xb0], eax
cmp dword [ebp - 0xc], 0
jne 0x1013a1bc
mov eax, dword [edi + 0x10]
test al, 2
jne 0x10139ebb
push 0
push 0
lea eax, [edi + 0x78]
push esi
push eax
call fcn.101416c0
movzx eax, word [edi + 0x80]
lea eax, [eax*8 + 0x20]
push eax
push dword [edi + 0x88]
push dword [edi + 0x8c]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi + 0x10]
add esp, 0x1c
mov esi, dword [esi + 4]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea edx, [esi + ebx*8]
test al, 1
jne 0x10139fed
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
test dword [eax + 4], 0x7fff0000
jne 0x10139f6c
test dword [eax + 8], 0x8000
jne 0x10139f6c
cmp esi, edx
jae 0x10139fed
mov ebx, edx
mov eax, dword [esi]
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 - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
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 - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 4], eax
add esi, 8
cmp esi, ebx
jb 0x10139f07
jmp 0x10139fea
mov ebx, dword [ebp - 8]
cmp esi, edx
jae 0x10139fea
mov edi, edx
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
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 [esi], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
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 - 0x24], eax
mov eax, dword [ebp - 0x24]
lea ebx, [ebx + 8]
add eax, 0x20
sar eax, 6
mov dword [esi + 4], eax
add esi, 8
cmp esi, edi
jb 0x10139f75
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
mov esi, dword [edi]
test byte [esi + 0x2e4], 2
je 0x1013a063
test byte [edi + 0x10], 2
jne 0x1013a063
mov eax, dword [edi + 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 - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x44], eax
mov eax, dword [edi + 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 - 0x24], eax
mov eax, dword [ebp - 0x24]
mov esi, dword [edi]
mov edx, dword [ebp - 0x1c]
mov dword [edi + 0x4c], eax
jmp 0x1013a088
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + ebx*8 - 0x20]
mov dword [edi + 0x44], eax
mov eax, dword [ecx + ebx*8 - 0x1c]
mov dword [edi + 0x48], eax
mov ecx, dword [edx + 4]
mov eax, dword [ecx + ebx*8 - 0x18]
mov dword [edi + 0x4c], eax
mov eax, dword [ecx + ebx*8 - 0x14]
mov dword [edi + 0x50], eax
test byte [esi + 0x2e4], 0x10
je 0x1013a16f
test byte [edi + 0x10], 2
jne 0x1013a16f
mov eax, dword [edi + 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 - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0xb4], eax
mov eax, dword [edi + 0xb8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
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 - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0xb8], eax
mov eax, dword [edi + 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 - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0xbc], eax
mov eax, dword [edi + 0xc0]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
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 - 0x24], eax
mov eax, dword [ebp - 0x24]
jmp 0x1013a197
mov ecx, dword [edx + 4]
mov eax, dword [ecx + ebx*8 - 0x10]
mov dword [edi + 0xb4], eax
mov eax, dword [ecx + ebx*8 - 0xc]
mov dword [edi + 0xb8], eax
mov ecx, dword [edx + 4]
mov eax, dword [ecx + ebx*8 - 8]
mov dword [edi + 0xbc], eax
mov eax, dword [ecx + ebx*8 - 4]
test byte [edi + 0x10], 2
mov dword [edi + 0xc0], eax
jne 0x1013a1b9
add word [edi + 0x80], 4
push 0
push edi
call fcn.10138590
add esp, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
push dword [ebp - 0x28]
call fcn.1012b150
mov eax, dword [ebp - 0xc]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret