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

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
push ebx
push esi
mov esi, dword [esp + 0x44]
mov ebx, dword [eax]
push edi
movzx edi, byte [eax + 0x6d660]
add ebx, 0xcb50
push edi
push ebx
mov dword [esp + 0x1c], ebx
call fcn.1015cfb0
add esp, 8
test eax, eax
je 0x101689af
lea eax, [edi + edi*4]
mov edi, dword [esp + 0x38]
shl eax, 4
add eax, dword [ebx + 0x3d5c]
push ebp
movzx ebp, byte [edi + 0x10808244]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x24], eax
mov eax, 1
mov dword [esp + 0x28], ecx
mov cl, byte [ebx + 4]
shl eax, cl
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
movzx ebx, byte [eax + 0x3ac38]
mov eax, ebx
imul eax, dword [esp + 0x44]
add eax, 4
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 0x1080822c]
add eax, dword [esp + 0x44]
imul eax, ebx
imul ebx, dword [esp + 0x14]
add eax, 4
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x3ac30]
add eax, 7
sar eax, 2
and eax, 0xfffffffe
mov dword [esp + 0x20], eax
lea eax, [ebx + 4]
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x40]
sar eax, 3
mov dword [esp + 0x2c], eax
lea ebx, [edx + ebp]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x30], ebx
mov ecx, dword [ecx + 0x3add4]
mov eax, ebx
cmp ebx, ecx
cmovge eax, ecx
cmp edx, eax
jge 0x101688be
mov eax, dword [esp + 0x20]
mov ebx, eax
cmp dword [esp + 0x10], eax
mov edi, dword [esp + 0x1c]
cmovl ebx, dword [esp + 0x10]
cmp edi, ebx
jge 0x101688a9
movzx eax, byte [ebp + 4]
push eax
push dword [esp + 0x28]
push edi
push edx
call fcn.1015c150
imul ecx, eax, 0xc8
add esp, 0x10
mov edx, dword [esp + 0x40]
add ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x50]
add dword [esi + 8], eax
mov eax, dword [ecx + 0x54]
adc dword [esi + 0xc], eax
mov eax, dword [ecx + 0x58]
add dword [esi + 0x10], eax
mov eax, dword [ecx + 0x5c]
adc dword [esi + 0x14], eax
mov eax, dword [ecx + 0x60]
add dword [esi + 0x18], eax
mov eax, dword [ecx + 0x64]
adc dword [esi + 0x1c], eax
mov eax, dword [ecx + 0x68]
add dword [esi + 0x20], eax
mov eax, dword [ecx + 0x6c]
adc dword [esi + 0x24], eax
mov eax, dword [ecx + 0x70]
add dword [esi + 0x28], eax
mov eax, dword [ecx + 0x74]
adc dword [esi + 0x2c], eax
mov eax, dword [ecx + 0x78]
add dword [esi + 0x30], eax
mov eax, dword [ecx + 0x7c]
adc dword [esi + 0x34], eax
mov eax, dword [ecx + 0x80]
add dword [esi + 0x38], eax
mov eax, dword [ecx + 0x84]
adc dword [esi + 0x3c], eax
add edi, dword [esp + 0x2c]
cmp edi, ebx
jl 0x10168822
add edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x40], edx
jmp 0x101687f2
mov ebx, dword [esi + 8]
or ecx, 0xffffffff
mov ebp, dword [esi + 0xc]
mov eax, ebx
or eax, ebp
mov edi, dword [esp + 0x48]
mov edx, closesocket
je 0x101688e9
cmp ebp, edx
jg 0x101688e9
jl 0x101688e0
cmp ebx, ecx
jae 0x101688e9
cmp dword [edi], 0
je 0x101688e9
mov ecx, ebx
mov edx, ebp
mov ebx, dword [esi + 0x10]
mov eax, ebx
mov ebp, dword [esi + 0x14]
or eax, ebp
je 0x10168909
cmp ebp, edx
jg 0x10168909
jl 0x101688ff
cmp ebx, ecx
jae 0x10168909
cmp dword [edi + 4], 0
je 0x10168909
mov ecx, ebx
mov edx, ebp
mov ebx, dword [esi + 0x18]
mov eax, ebx
mov ebp, dword [esi + 0x1c]
or eax, ebp
je 0x10168929
cmp ebp, edx
jg 0x10168929
jl 0x1016891f
cmp ebx, ecx
jae 0x10168929
cmp dword [edi + 8], 0
je 0x10168929
mov ecx, ebx
mov edx, ebp
mov ebx, dword [esi + 0x20]
mov eax, ebx
mov ebp, dword [esi + 0x24]
or eax, ebp
je 0x10168949
cmp ebp, edx
jg 0x10168949
jl 0x1016893f
cmp ebx, ecx
jae 0x10168949
cmp dword [edi + 0xc], 0
je 0x10168949
mov ecx, ebx
mov edx, ebp
mov ebx, dword [esi + 0x28]
mov eax, ebx
mov ebp, dword [esi + 0x2c]
or eax, ebp
je 0x10168969
cmp ebp, edx
jg 0x10168969
jl 0x1016895f
cmp ebx, ecx
jae 0x10168969
cmp dword [edi + 0x10], 0
je 0x10168969
mov ecx, ebx
mov edx, ebp
mov ebx, dword [esi + 0x30]
mov eax, ebx
mov ebp, dword [esi + 0x34]
or eax, ebp
je 0x10168989
cmp ebp, edx
jg 0x10168989
jl 0x1016897f
cmp ebx, ecx
jae 0x10168989
cmp dword [edi + 0x14], 0
je 0x10168989
mov ecx, ebx
mov edx, ebp
mov ebx, dword [esi + 0x38]
mov eax, ebx
mov ebp, dword [esi + 0x3c]
or eax, ebp
je 0x101689a9
cmp ebp, edx
jg 0x101689a9
jl 0x1016899f
cmp ebx, ecx
jae 0x101689a9
cmp dword [edi + 0x18], 0
je 0x101689a9
mov ecx, ebx
mov edx, ebp
mov dword [esi], ecx
mov dword [esi + 4], edx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret