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

Disassembly:
sub esp, 0x34
mov ecx, dword [esp + 0x38]
xorps xmm0, xmm0
push ebx
push ebp
mov ebp, dword [esp + 0x50]
push esi
push edi
mov edi, dword [esp + 0x4c]
mov eax, dword [edi + 0x10b0]
lea ebx, [edi + 0xe0]
push ebp
mov edx, dword [eax]
mov eax, dword [ecx + 0x3e7a8]
mov dword [esp + 0x34], edx
mov al, byte [eax + 0x4d]
mov byte [esp + 0x16], al
mov eax, dword [esp + 0x64]
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
push eax
push dword [esp + 0x60]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x38], 0
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x38], 0
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x44], 0
push eax
mov dword [esp + 0x4c], 0
mov byte [esp + 0x78], 0
mov byte [esp + 0x33], 0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x54], xmm0
mov byte [ebp + 0x170], 0
and byte [edx + 0x9f], 0x3f
push edi
push ecx
mov word [edx + 0x14], 0xff00
mov dword [edx + 0xc], 0
call fcn.10140ed0
push 0
push edi
push dword [esp + 0x78]
mov dword [esp + 0x50], eax
mov esi, edx
call fcn.10144f50
add esp, 0x34
cmp esi, dword [esp + 0x60]
jg 0x10165bed
jl 0x10165a47
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x5c]
jae 0x10165bed
cmp byte [esp + 0x12], 0
jne 0x10165b3c
cmp byte [ebx + 0xc], 0
mov edx, dword [esp + 0x48]
je 0x10165aab
mov eax, dword [edx + 0x3e7a8]
cmp byte [eax + 0x4d], 0
jne 0x10165aab
push ebx
call fcn.1016b9b0
add esp, 4
test al, al
je 0x10165aa7
push dword [ebp + 0x144]
lea eax, [edi + 0x23b81]
push dword [ebp + 0x100]
push eax
call fcn.105137c0
push dword [ebp + 0x144]
push dword [ebp + 0x140]
push dword [ebx + 0xfe8]
call fcn.105137c0
add esp, 0x18
mov edx, dword [esp + 0x48]
mov eax, dword [ebx + 0xfd0]
mov ecx, dword [eax]
movzx eax, byte [ecx + 0x9f]
and eax, 7
cmp dword [ebx + eax*4 + 0x1a9c], 0
je 0x10165ace
mov byte [esp + 0x1c], 0
jmp 0x10165b16
mov ecx, dword [ecx]
mov eax, dword [ebx + 0x54c]
lea ecx, [eax + ecx*2]
mov eax, dword [ebx + 0x550]
lea eax, [eax + ecx*2]
mov eax, dword [eax*4 + 0x106341d0]
mov cl, byte [eax + 0x108083c8]
movzx eax, cl
add eax, 0xfffffffc
cmp eax, 0xe
ja case.0x10165b01.5
movzx eax, byte [eax + 0x10165ccc]
jmp dword [eax*4 + 0x10165cbc]
mov cl, 3
jmp case.0x10165b01.5
mov cl, 0xa
jmp case.0x10165b01.5
mov cl, 9
mov byte [esp + 0x1c], cl
push dword [esp + 0x1c]
lea eax, [esp + 0x17]
push dword [esp + 0x58]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x34]
push eax
push edi
push edx
call fcn.101408f0
add esp, 0x20
mov eax, dword [ebx + 0xfdc]
mov ecx, dword [ebx + 0xfd8]
test eax, eax
je 0x10165b55
movzx edx, byte [eax + 0x88]
jmp 0x10165b57
xor edx, edx
test ecx, ecx
je 0x10165b64
movzx eax, byte [ecx + 0x88]
jmp 0x10165b66
xor eax, eax
mov esi, dword [esp + 0x34]
add eax, edx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x4c]
mov edi, dword [edi + eax*8 + 0x7c38]
add edi, dword [esp + 0x20]
add edi, dword [esp + 0x24]
add esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x50]
adc ecx, dword [esp + 0x40]
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax], edi
mov eax, edi
imul dword [edx + 0x31cc]
add eax, 0x100
adc edx, 0
shld ecx, esi, 7
shrd eax, edx, 9
shl esi, 7
sar edx, 9
add eax, esi
mov esi, dword [esp + 0x50]
adc edx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov byte [esi + 0x20], 0
cmp edi, 0x7fffffff
je 0x10165bfd
mov ecx, eax
cmp edx, dword [esp + 0x60]
jg 0x10165bfd
jl 0x10165be1
mov eax, dword [esp + 0x5c]
cmp ecx, eax
jae 0x10165c01
mov dword [esp + 0x18], ecx
mov eax, ecx
mov dword [esp + 0x14], edx
jmp 0x10165c01
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
mov dword [esi], closesocket
jmp 0x10165c05
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x4c]
push dword [esp + 0x14]
push eax
push dword [esp + 0x5c]
push esi
push ebp
push edi
push dword [esp + 0x60]
call fcn.1016dae0
add esp, 0x1c
cmp edx, dword [esp + 0x14]
jg 0x10165c56
jl 0x10165c2b
cmp eax, dword [esp + 0x18]
jae 0x10165c56
mov eax, dword [esp + 0x30]
push dword [ebp + 0x144]
mov al, byte [eax + 0x88]
mov byte [ebp + 0x170], al
lea eax, [edi + 0x23b81]
push eax
push dword [ebp + 0x100]
call fcn.105137c0
add esp, 0xc
cmp dword [esi], 0x7fffffff
je 0x10165cb4
mov esi, dword [ebx + 0xfd0]
mov ecx, 0x29
mov edi, ebp
mov esi, dword [esi]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0xfd0]
mov eax, dword [eax]
add eax, 0x14
push eax
call fcn.10165ce0
movzx eax, al
push eax
mov eax, dword [esp + 0x54]
add eax, 0x2c70
push eax
lea eax, [ebp + 0xa4]
push eax
call fcn.10162a20
push dword [ebp + 0x144]
push dword [ebx + 0xfe8]
push dword [ebp + 0x140]
call fcn.105137c0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret