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

Disassembly:
sub esp, 0x874
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x870], eax
mov eax, dword [esp + 0x880]
mov edx, dword [esp + 0x88c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x888]
mov bh, byte [edx + 0x108b5e30]
mov dword [eax], closesocket
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], closesocket
mov dword [eax + 0x10], 0xffffffff
mov dword [eax + 0x14], closesocket
mov dword [eax + 0x18], 0xffffffff
mov dword [eax + 0x1c], closesocket
mov byte [eax + 0x20], 0
mov dword [eax + 4], 0
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x10b0]
push edi
mov edi, dword [esp + 0x888]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax]
mov al, byte [esi + 0x23b6c]
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x13], bh
cmp al, 2
jne 0x102237f5
mov al, byte [ecx + 0x9f]
movzx ebx, bh
mov dword [esp + 0x1c], ebx
test al, al
js 0x102237a2
cmp byte [ecx + 0x14], 0
jg 0x102237a2
xor ecx, ecx
jmp 0x102237a7
mov ecx, 1
movzx eax, byte [esi + 0x23b60]
push eax
lea eax, [edi + 0x5ccb8]
push eax
movzx eax, byte [edx + 0x108b5cb0]
push ecx
push eax
movzx eax, byte [edx + 0x108b5c98]
push eax
call fcn.10225040
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x24], ebp
cmp ebp, 2
jne 0x1022382e
cmp byte [edi + 0x3ee3c], 0
jne 0x1022382e
cmp byte [ebx + 0x108b61d8], 4
jne 0x1022382e
movzx ebx, byte [ebx + 0x108b5e68]
jmp 0x1022382a
movzx eax, al
mov bl, byte [eax + 0x108ab3d4]
test edx, edx
jne 0x1022380c
test bl, bl
movzx eax, bl
cmove edx, eax
jmp 0x1022381e
movzx ecx, bh
movzx edx, bl
movzx eax, bh
cmp byte [ecx + 0x108b61c4], bl
cmovbe edx, eax
mov ebp, 2
movzx ebx, dl
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x2c]
or edx, 0xffffffff
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], closesocket
mov byte [esi + 0x1b5e4], 0
movzx ecx, byte [eax + 0x108b5d10]
mov eax, 1
sub ecx, 4
mov dword [esp + 0x68], edx
shl eax, cl
cmp dword [esp + 0x24], 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x6c], closesocket
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], closesocket
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], closesocket
jg 0x10223a20
mov ecx, dword [esp + 0x898]
cmp byte [edi + 0x3ee3c], 0
jne 0x102238a9
cmp byte [ebx + 0x108b61d8], 4
je 0x10223a0f
cmp byte [edi + 0x3ee3e], 0
jne 0x102238c6
mov eax, dword [ebx*4 + 0x108b5ea8]
cmp eax, dword [ebx*4 + 0x108b5ef8]
jne 0x10223a0f
cmp byte [esi + 0x23b7c], 2
je 0x10223a20
cmp byte [edi + 0x5d00c], 0
je 0x102238e6
cmp ebx, dword [esp + 0x1c]
jne 0x102238e6
mov al, 1
jmp 0x102238e8
xor al, al
mov byte [esi + 0x23b7d], al
cmp byte [edi + 0x5d00d], 0
je 0x10223912
cmp ecx, dword [esp + 0x18]
jg 0x1022390a
mov eax, dword [esp + 0x894]
jl 0x10223919
cmp eax, edx
jb 0x10223919
mov ecx, dword [esp + 0x18]
mov eax, edx
jmp 0x10223919
mov eax, dword [esp + 0x894]
push 0
push 0
mov dl, bl
push edx
push dword [esp + 0x38]
mov dword [esp + 0x48], edx
push ecx
push eax
lea eax, [esp + 0x58]
push eax
push esi
push edi
call fcn.10222ea0
mov ecx, edx
mov dword [esp + 0x44], eax
add esp, 0x24
mov dword [esp + 0x30], ecx
mov dword [esp + ebp*8 + 0x68], eax
mov dword [esp + ebp*8 + 0x6c], ecx
cmp ecx, dword [esp + 0x18]
jg 0x102239c5
jl 0x10223959
cmp eax, dword [esp + 0x14]
jae 0x102239c5
push dword [esp + 0x28]
lea eax, [esi + 0x23b81]
push eax
lea eax, [esp + 0x488]
push eax
call fcn.105137c0
push dword [esp + 0x34]
lea eax, [esp + 0x90]
push dword [esi + 0x10c8]
push eax
call fcn.105137c0
mov al, byte [esp + 0x50]
add esp, 0x18
movups xmm0, xmmword [esp + 0x40]
mov edx, dword [esp + 0x20]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], edx
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x50]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [esp + 0x60]
movq qword [eax + 0x20], xmm0
jmp 0x102239c9
mov edx, dword [esp + 0x20]
test ebx, ebx
je 0x10223a20
cmp ebp, dword [esp + 0x24]
jle 0x10223a04
cmp ebp, 2
je 0x10223a04
cmp dword [esi + 0x243a4], 0x100
jae 0x10223a04
mov ecx, dword [esp + ebp*8 + 0x60]
mov eax, dword [esp + ebp*8 + 0x64]
cmp ecx, 0xffffffff
jne 0x102239f8
cmp eax, 0x7fffffff
je 0x10223a04
cmp dword [esp + 0x30], eax
jg 0x10223a20
jl 0x10223a04
cmp edx, ecx
ja 0x10223a20
mov ecx, dword [esp + 0x898]
mov edx, dword [esp + 0x14]
movzx ebx, byte [ebx + 0x108b5e68]
inc ebp
cmp ebp, 2
jle 0x10223893
mov eax, dword [esp + 0x34]
cmp dword [eax], 0x7fffffff
je 0x10223a6a
mov ecx, dword [esp + 0x3c]
mov al, byte [esp + 0x13]
mov ebx, dword [esp + 0x28]
push ebx
mov byte [ecx + 0x89], al
lea eax, [esp + 0x84]
push eax
push dword [esi + 0x10c8]
call fcn.105137c0
push ebx
lea eax, [esp + 0x490]
push eax
lea eax, [esi + 0x23b81]
push eax
call fcn.105137c0
add esp, 0x18
mov ecx, dword [esp + 0x880]
pop edi
mov word [esi + 0x23b7c], 0
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x874
ret