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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x4c], eax
lea edx, [ecx + 0xe0]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x28], eax
mov al, byte [ebp + 0x1c]
mov byte [esp + 0xf], al
mov byte [esp + 0x1c], al
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0xfd0]
mov ebx, dword [ebp + 0x20]
mov eax, dword [eax]
mov esi, dword [ebp + 0x40]
mov edi, dword [edx + 0xffc]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0x108b5ce0]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebx
test edi, edi
jns 0x1022a26e
mov ecx, dword [edx + 0x18]
add ecx, 3
sar edi, cl
add eax, edi
movzx edi, byte [ebx + 0x108b5cc8]
mov ebx, dword [edx + 0xff4]
sar eax, 2
mov dword [esp + 0x38], eax
test ebx, ebx
jns 0x1022a290
mov ecx, dword [edx + 0x14]
add ecx, 3
sar ebx, cl
add edi, ebx
mov ecx, dword [esp + 0x14]
sar edi, 2
cmp ecx, eax
jge 0x1022a80d
mov eax, dword [esp + 0x10]
cmp eax, edi
jge 0x1022a80d
mov ebx, dword [esp + 0x18]
mov edx, ecx
push dword [esp + 0x1c]
movzx ecx, byte [ebx + 0x108b7308]
sar edx, cl
movzx ecx, byte [ebx + 0x108b7320]
shl edx, cl
movzx ecx, byte [ebx + 0x108b72f0]
add edx, dword [esp + 0x24]
sar eax, cl
mov ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x44]
mov bl, byte [eax + edx + 0x8a]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
push dword [edx]
push eax
push ecx
call fcn.1022a8e0
movzx ecx, byte [esp + 0x1f]
add esp, 0x10
mov dword [esp + 0x50], eax
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 1
mov dword [esi + 4], 0
mov dword [esp + 0x30], ecx
cmp byte [esp + 0xf], bl
jne 0x1022a563
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x54]
add ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
push edx
push ecx
push eax
push 0
push edi
push dword [esp + 0x2c]
mov dword [esp + 0x50], ecx
call fcn.10225660
mov eax, dword [esp + 0x48]
push dword [ebp + 0x3c]
mov ebx, dword [esp + 0x40]
push dword [ebp + 0x38]
movzx ecx, byte [eax + 0x108b61d8]
movzx eax, byte [eax + 0x108b61c4]
inc ecx
push dword [ebp + 0x44]
add eax, ecx
shr eax, 1
movzx eax, al
imul eax, eax, 0x3b0
push esi
add eax, dword [esp + 0x7c]
mov eax, dword [ebx + eax*8 + 0xa988]
mov dword [esp + 0x48], eax
mov dword [esi + 4], eax
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x44]
push dword [esp + 0x58]
push dword [esp + 0x44]
push dword [esp + 0x4c]
push edi
push ebx
push dword [esp + 0x90]
call fcn.1022a880
mov eax, dword [esp + 0x60]
add esp, 0x48
mov edi, dword [ebx + 0x31cc]
mov ecx, dword [esi + 0xc]
movzx eax, byte [eax + 0x108b5c98]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
imul edi
add eax, 0x100
mov ebx, edx
adc ebx, 0
shrd eax, ebx, 9
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
shld ecx, eax, 7
sar ebx, 9
shl eax, 7
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
adc ebx, ecx
mov ecx, dword [esi + 0x1c]
imul edi
mov edi, eax
mov eax, dword [esi + 0x18]
add edi, 0x100
adc edx, 0
shld ecx, eax, 7
shrd edi, edx, 9
shl eax, 7
sar edx, 9
add edi, eax
adc edx, ecx
cmp ebx, edx
jg 0x1022a487
jl 0x1022a458
cmp dword [esp + 0x18], edi
jae 0x1022a487
cmp byte [esi + 0x20], 1
je 0x1022a487
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
add eax, edx
mov byte [esi + 0x20], 0
and byte [ecx + eax + 0x23b81], 0xfe
jmp 0x1022a4ed
mov eax, dword [esp + 0x20]
xor ebx, ebx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
mov dword [esi], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x2c]
mov byte [esi + 0x20], 1
push ebx
add eax, edx
or byte [ecx + eax + 0x23b81], 1
mov eax, dword [ecx + 0x10]
mov word [eax + edi*2], bx
mov eax, dword [ecx + 0x14]
mov byte [edi + eax], bl
lea eax, [ecx + 0xe0]
mov ebx, dword [esp + 0x20]
push ebx
push edx
push dword [esp + 0x20]
push eax
call fcn.1022aaa0
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov edx, dword [esp + 0x10]
cmp byte [esp + 0xf], 0
jbe 0x1022a507
cmp dword [ebp + 0x24], 2
jge 0x1022a507
mov eax, dword [esp + 0x50]
mov eax, dword [ecx + eax*8 + 0x7d40]
add dword [esi], eax
mov eax, dword [ecx + 0x14]
movzx esi, byte [edi + eax]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x44]
add eax, edx
push dword [edi*4 + 0x108b5f48]
push esi
push eax
call fcn.10513d40
push dword [edi*4 + 0x108b5f98]
push esi
push dword [esp + 0x4c]
call fcn.10513d40
mov eax, dword [esp + 0x58]
add eax, dword [esp + 0x28]
push ebx
push ebx
push dword [esp + 0x54]
push eax
call fcn.1022aa30
add esp, 0x28
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret
mov al, byte [ecx + 0x108b5e68]
xorps xmm0, xmm0
mov ebx, dword [ecx*4 + 0x108b5f98]
mov byte [esp + 0x5c], al
movzx eax, al
mov edx, dword [eax*4 + 0x108b5f48]
mov eax, dword [eax*4 + 0x108b5f98]
mov dword [esp + 0x6c], eax
imul eax, edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x14]
cmp ebx, eax
movlpd qword [esp + 0x38], xmm0
cmovge ebx, eax
sub edi, dword [esp + 0x10]
mov eax, dword [ecx*4 + 0x108b5f48]
cmp eax, edi
mov dword [esp + 0x54], ebx
cmovge eax, edi
xor ecx, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x1c], ecx
test ebx, ebx
jle 0x1022a7ef
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], edi
xor edx, edx
mov dword [esp + 0x38], edx
test eax, eax
jle 0x1022a7d9
nop
push dword [ebp + 0x44]
mov ecx, dword [ebp + 0x38]
lea eax, [esp + 0x7c]
push eax
mov eax, dword [ebp + 0x3c]
sub ecx, edi
xorps xmm0, xmm0
mov dword [esp + 0x80], 0
sbb eax, ebx
movlpd qword [esp + 0x88], xmm0
push eax
mov eax, dword [ebp + 0x24]
push ecx
push dword [esp + 0x3c]
inc eax
movlpd qword [esp + 0x9c], xmm0
push dword [esp + 0x54]
movlpd qword [esp + 0xa8], xmm0
push dword [esp + 0x60]
mov byte [esp + 0xb4], 1
push dword [esp + 0x60]
mov dword [esp + 0x9c], 0
push eax
push dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push dword [esp + 0x84]
add eax, edx
push dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x48]
add eax, dword [esp + 0x50]
push eax
push dword [esp + 0x5c]
push dword [esp + 0x88]
call fcn.1022a1d0
add esp, 0x40
cmp dword [esp + 0x78], 0x7fffffff
je 0x1022a822
mov eax, dword [esi]
mov ecx, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
mov dword [esp + 0x30], ecx
cmp eax, 0x7fffffff
je 0x1022a746
cdq
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0x78]
cdq
add ecx, eax
adc ebx, edx
test ebx, ebx
jg 0x1022a6d0
jl 0x1022a6dd
cmp ecx, 0x7fffffff
jb 0x1022a6dd
mov ecx, closesocket
mov dword [esp + 0x74], 0
cmp dword [esi + 4], 0
mov dword [esi], ecx
jne 0x1022a6ec
mov eax, dword [esp + 0x7c]
mov dword [esi + 4], eax
add dword [esi + 8], edi
mov eax, dword [esp + 0x30]
adc dword [esi + 0xc], eax
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
cmp ecx, 0x7fffffff
jg 0x1022a732
jl 0x1022a70b
cmp eax, 0xffffffff
jae 0x1022a732
mov ebx, dword [esp + 0x94]
cmp ebx, 0x7fffffff
jg 0x1022a732
mov edx, dword [esp + 0x90]
jl 0x1022a728
cmp edx, 0xffffffff
jae 0x1022a732
add eax, edx
mov dword [esi + 0x18], eax
adc ecx, ebx
mov dword [esi + 0x1c], ecx
mov al, byte [esp + 0x98]
and byte [esi + 0x20], al
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
jmp 0x1022a781
mov dword [esi], closesocket
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], closesocket
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], closesocket
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], closesocket
mov byte [esi + 0x20], 0
mov dword [esi + 4], 0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x78]
imul dword [edx + 0x31cc]
add eax, 0x100
adc edx, 0
shrd eax, edx, 9
shld ecx, edi, 7
sar edx, 9
shl edi, 7
add eax, edi
mov edi, dword [esp + 0x20]
adc edx, ecx
add edi, eax
mov eax, dword [esp + 0x60]
adc ebx, edx
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0x38]
add dword [esp + 0x28], eax
add edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edx
cmp edx, eax
jl 0x1022a5f0
mov ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0x6c]
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esp + 0x54]
jl 0x1022a5e0
cmp byte [esp + 0xf], 0
jbe 0x1022a80d
cmp dword [ebp + 0x24], 2
jge 0x1022a80d
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
mov eax, dword [eax + ecx*8 + 0x7d44]
add dword [esi], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xa4]
pop edi
mov dword [esi], closesocket
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], closesocket
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], closesocket
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], closesocket
mov byte [esi + 0x20], 0
mov dword [esi + 4], 0
pop esi
pop ebx
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret