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

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x50]
push ebp
push esi
mov esi, dword [esp + 0x78]
add ebx, 0xe0
mov ebp, dword [esp + 0x7c]
push edi
mov edi, dword [esp + 0x58]
push dword [esp + 0x6c]
mov dword [esp + 0x20], ebx
push dword [esp + 0x6c]
lea eax, [edi + 0x3abf0]
lea ecx, [eax + 0x1d8]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x1008]
push esi
push ecx
mov eax, dword [eax + 0x8c]
shr eax, 3
and eax, 1
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x1a78]
mov dword [esp + 0x20], eax
movzx eax, byte [esi + 0x105e34a0]
mov dword [esp + 0x38], eax
call fcn.10084130
movzx edx, byte [esi + 0x105e3488]
add esp, 0x10
mov dword [esp + 0x80], eax
movzx eax, byte [esi + 0x105e34d0]
mov dword [esp + 0x7c], eax
mov eax, dword [edi + 0x3adc8]
cmp edx, 2
jbe 0x10083799
lea ecx, [edx - 2]
sar eax, cl
jmp 0x100837a2
mov ecx, 2
sub ecx, edx
shl eax, cl
movzx edx, byte [esi + 0x105e3470]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x3adcc]
cmp edx, 2
jbe 0x100837bf
lea ecx, [edx - 2]
sar eax, cl
jmp 0x100837c8
mov ecx, 2
sub ecx, edx
shl eax, cl
mov dword [esp + 0x34], eax
lea ecx, [ebx + 0x30]
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x18], ecx
push dword [esp + 0x18]
mov eax, dword [eax + 0x28]
add eax, dword [esp + 0x74]
mov dword [ecx], eax
mov ecx, 2
mov eax, dword [esp + 0x2c]
imul eax, dword [esp + 0x70]
mov edx, dword [edi + 0x3ee78]
shr ebx, 2
mov dword [esp + 0x80], ebx
mov esi, dword [0x105d8818]
sub ecx, eax
mov dword [esp + 0x24], eax
shl ecx, 2
mov eax, 0xfffffffe
sub eax, dword [esp + 0x24]
sub ecx, edx
sub eax, ebx
mov dword [esp + 0x3c], esi
mov ebx, dword [esp + 0x60]
shl eax, 2
cmp ecx, eax
cmovg eax, ecx
add edx, 0xfffffff8
mov dword [ebx + 0x1e460], eax
mov ecx, dword [edi + 0x3add8]
sub ecx, dword [esp + 0x24]
mov eax, ecx
sub eax, dword [esp + 0x80]
lea ecx, [ecx*4 + 8]
lea eax, [edx + eax*4]
cmp eax, ecx
cmovl ecx, eax
lea eax, [ebx + 0x18]
push eax
push dword [esp + 0x88]
mov dword [ebx + 0x1e464], ecx
push dword [esp + 0x1c]
mov dword [esp + 0x34], eax
push dword [esp + 0x24]
call fcn.100842b0
mov ecx, dword [edi + 0x3ef80]
mov ebx, eax
mov dword [esp + 0x90], ebx
mov eax, dword [ecx + 0x28]
add eax, dword [esp + 0x8c]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x9c]
push dword [esp + 0x30]
push dword [esp + 0x38]
call fcn.100842b0
mov ecx, dword [esp + 0xb0]
mov edx, eax
mov eax, dword [esp + 0xac]
add esp, 0x28
mov dword [ecx + eax*4], edx
cmp edx, dword [edi + 0x5ccec]
jle 0x1008396b
mov ebx, dword [esp + 0x5c]
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x94]
push eax
push ebx
push edi
call fcn.10083510
add esp, 0x14
cmp dword [edi + 0x5ccf4], 0
jne 0x10083963
cmp dword [esp + 0x8c], 0
je 0x10083963
mov eax, dword [0x105d8818]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x7c], closesocket
push eax
push 0x105d8814
push ebx
push edi
call fcn.10083510
mov eax, dword [esp + 0x8c]
add esp, 0x14
mov ebx, dword [esp + 0x7c]
cmp eax, ebx
jge 0x10083967
mov esi, dword [esp + 0x88]
mov ebx, eax
mov dword [esp + 0x38], esi
jmp 0x1008396b
mov ebx, dword [esp + 0x7c]
mov esi, dword [esp + 0x38]
cmp dword [edi + 0x3ac00], 1
mov ecx, ebx
mov edi, dword [esp + 0x98]
mov edx, dword [esp + 0x64]
jbe 0x10083a1c
test edx, edx
je 0x10083a1c
mov eax, dword [0x105d8818]
push 1
push 0
push 0
push 0
push edx
push 0
push dword [esp + 0x34]
mov dword [esp + 0x94], eax
call fcn.100c5780
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x8c]
push eax
push dword [esp + 0x44]
add dword [eax], ecx
push dword [esp + 0xa4]
push dword [esp + 0x38]
push dword [esp + 0x40]
call fcn.100842b0
mov dword [esp + 0xac], eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0xac]
push eax
mov eax, dword [esp + 0x94]
push 0x105d8814
push eax
push dword [esp + 0x98]
call fcn.10083510
mov ecx, dword [esp + 0xc0]
add esp, 0x44
mov edx, dword [esp + 0x64]
cmp ecx, ebx
jge 0x10083a1c
cmp ecx, ebp
jge 0x10083a1c
inc dword [edi + 0x28]
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x10], 1
jbe 0x10083a33
test edx, edx
je 0x10083a33
cmp ecx, ebp
mov eax, ebp
cmovl eax, ecx
jmp 0x10083a35
mov eax, ebx
mov ecx, dword [esp + 0x18]
cdq
add dword [edi + 0x18], eax
adc dword [edi + 0x1c], edx
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x28]
add eax, dword [esp + 0x70]
mov dword [ecx], eax
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x3e7a8]
cmp byte [eax + 0x4d], 0
jne 0x10083a81
mov eax, dword [edx + 0x2c]
mov edx, dword [esp + 0x1c]
add eax, dword [esp + 0x74]
mov dword [edx + 0x568], eax
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 0x30]
add eax, dword [esp + 0x74]
mov dword [edx + 0xaa0], eax
jmp 0x10083a85
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x90]
mov eax, dword [0x105d8814]
mov dword [ecx], eax
cmp ebx, ebp
jg 0x10083c82
lea ecx, [ebp - 0x400]
lea eax, [ebx + ebx*4]
lea ecx, [ecx + ecx*8]
add eax, eax
cmp ecx, eax
jg 0x10083ac4
cmp ebp, 0x800
jge 0x10083ac4
movsd xmm0, qword [edi + 0x30]
addsd xmm0, qword [0x1059ba70]
jmp 0x10083b07
cmp ebp, 0x2000
jle 0x10083b0c
lea eax, [ebx + ebx*2]
cmp ebp, eax
jge 0x10083b0c
movd xmm1, ebp
xorps xmm0, xmm0
cvtdq2pd xmm1, xmm1
comisd xmm0, xmm1
jbe 0x10083aee
subsd xmm1, qword [0x105e46c0]
jmp 0x10083af6
addsd xmm1, qword [0x105e46c0]
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
addsd xmm0, qword [edi + 0x30]
movsd qword [edi + 0x30], xmm0
mov eax, dword [esp + 0x3a]
mov ebp, ebx
shl eax, 3
movzx ecx, ax
lea eax, [esi*8]
movzx eax, ax
mov ebx, dword [esp + 0x90]
shl ecx, 0x10
or ecx, eax
mov eax, dword [esp + 0x90]
mov dword [eax], ecx
mov eax, dword [edx + 0xfd0]
mov eax, dword [eax]
mov byte [eax + 5], 0x10
mov eax, dword [edx + 0xfd0]
mov ecx, dword [eax]
mov eax, dword [ebx]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0xfd0]
mov eax, dword [eax]
mov byte [eax + 0x89], 0
mov eax, dword [edx + 0xfd0]
mov eax, dword [eax]
mov byte [eax + 0x14], 1
mov eax, dword [edx + 0xfd0]
mov eax, dword [eax]
mov byte [eax + 0x15], 0xff
mov eax, dword [esp + 0x58]
cmp dword [eax + 0x5ccf0], 0
jne 0x10083bc6
mov eax, dword [esp + 0x28]
imul eax, dword [esp + 0x68]
push 0
push 0
push dword [esp + 0x88]
push 0
push dword [esp + 0x30]
push eax
push edx
push dword [esp + 0x48]
call fcn.101152f0
push dword [esp + 0xa0]
push dword [esp + 0x80]
push dword [esp + 0x80]
call fcn.10106bb0
add esp, 0x2c
movsx eax, word [ebx]
add dword [edi + 0x48], eax
movsx eax, word [ebx]
cdq
xor eax, edx
sub eax, edx
add dword [edi + 0x50], eax
movsx eax, word [ebx + 2]
add dword [edi + 0x4c], eax
movsx eax, word [ebx + 2]
cdq
xor eax, edx
sub eax, edx
add dword [edi + 0x54], eax
movsx eax, word [ebx]
imul eax, eax
cdq
add dword [edi + 0x58], eax
adc dword [edi + 0x5c], edx
movsx eax, word [ebx + 2]
imul eax, eax
cdq
add dword [edi + 0x60], eax
adc dword [edi + 0x64], edx
inc dword [edi + 0x24]
mov eax, dword [ebx]
test eax, eax
je 0x10083c82
mov ecx, dword [esp + 0x94]
inc dword [edi + 0x20]
cmp eax, dword [ecx]
je 0x10083c1f
inc dword [edi + 0x40]
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
cmp dword [esp + 0x68], eax
jge 0x10083c3c
test si, si
jg 0x10083c4a
jns 0x10083c4d
inc dword [edi + 0x44]
jmp 0x10083c4d
jle 0x10083c4d
test si, si
jle 0x10083c48
inc dword [edi + 0x44]
jmp 0x10083c4d
jns 0x10083c4d
dec dword [edi + 0x44]
mov eax, dword [esp + 0x34]
cdq
sub eax, edx
sar eax, 1
cmp dword [esp + 0x6c], eax
jge 0x10083c73
shr esi, 0x10
test si, si
jg 0x10083c7f
jns 0x10083c82
inc dword [edi + 0x44]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
jle 0x10083c82
shr esi, 0x10
test si, si
jg 0x10083c66
jns 0x10083c82
dec dword [edi + 0x44]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x44
ret