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

Disassembly:
sub esp, 0xa0
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa4]
push ebx
push ebp
mov ebx, dword [esp + 0xbc]
mov ebp, dword [esp + 0xd0]
push esi
push edi
mov edi, dword [esp + 0xd4]
push dword [esp + 0xe0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc0]
movups xmm0, xmmword [edi + 4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xd0]
movups xmmword [esp + 0x5c], xmm0
mov dword [esp + 0x40], eax
movups xmm0, xmmword [edi + 0x14]
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x3add4]
movups xmmword [esp + 0x6c], xmm0
mov dword [esp + 0x54], eax
movups xmm0, xmmword [edi + 0x24]
mov eax, dword [ecx + 0x3add8]
mov dword [esp + 0x58], eax
psrldq xmm0, 8
movd eax, xmm0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x48], eax
call fcn.1045a260
lea esi, [edi + 0x80]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xe8]
add esp, 8
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 ebp, dword [esp + 0x14]
movzx ecx, al
mov eax, dword [edi + 0xb8]
mov dword [esp + 0x2c], esi
mov eax, dword [eax + ecx*4]
mov dword [esi], eax
imul dword [ebx + 0x31cc]
mov esi, dword [esp + 0x28]
mov ebx, 4
add eax, 0x100
adc edx, 0
shrd eax, edx, 9
sar edx, 9
add esi, 0x24994
mov dword [edi + 0x90], eax
mov dword [edi + 0x94], edx
mov edi, dword [esp + 0x10]
push esi
push dword [esp + 0x28]
push ebp
call fcn.10080be0
add esp, 0xc
mov dword [edi], eax
test eax, eax
jne 0x1045b6b0
mov eax, dword [esp + 0x18]
push str.Failed_to_allocate_PICK_MODE_CONTEXT
push 2
push dword [eax + 0x1ba4]
call fcn.1006e850
add esp, 0xc
add edi, 4
sub ebx, 1
jne 0x1045b683
mov eax, dword [esp + 0xdc]
mov edi, 4
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x2c]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x90]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
nop dword [eax]
mov dword [eax - 4], edx
lea eax, [eax + 8]
add edx, dword [esp + 0x1c]
mov dword [eax - 8], ecx
add ecx, ebx
sub edi, 1
jne 0x1045b6f0
mov edx, dword [esp + 0xe0]
lea edi, [esp + 0x50]
xor eax, eax
xor bl, bl
cmp dl, 8
setne al
mov dword [esp + 0x1c], eax
lea edi, [edi + eax*4]
movzx ecx, bl
test bl, bl
je 0x1045b739
lea eax, [eax + ecx*2]
mov eax, dword [esp + eax*4 + 0x8c]
cmp eax, dword [edi]
jge 0x1045b7fa
mov eax, dword [esp + 0x10]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x178], 0
mov eax, dword [esp + 0x10]
movups xmm0, xmmword [ebp]
push dword [eax + ecx*4]
push edx
push esi
sub esp, 0x28
mov eax, esp
push dword [esp + 0x58]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp + 0x10]
push dword [esp + ecx*8 + 0xc8]
movups xmmword [eax + 0x10], xmm0
movq xmm0, qword [ebp + 0x20]
push dword [esp + ecx*8 + 0xc8]
movq qword [eax + 0x20], xmm0
xor eax, eax
cmp bl, 3
sete al
push eax
push dword [esp + 0x78]
push dword [esp + 0x68]
push dword [esp + 0x74]
push dword [esp + 0x64]
call fcn.1045bdd0
add esp, 0x54
test eax, eax
je 0x1045b7bf
inc bl
cmp bl, 4
jae 0x1045b7fa
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0xe0]
jmp 0x1045b720
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 eax, dword [esp + 0x18]
mov edx, dword [eax + 0x31cc]
mov eax, dword [esi]
cmp eax, 0x7fffffff
jge 0x1045b87b
mov ecx, dword [esi + 0xc]
mov ebx, dword [esi + 8]
cmp ecx, 0x7fffffff
jg 0x1045b87b
jl 0x1045b822
cmp ebx, 0xffffffff
jae 0x1045b87b
cmp dword [esi + 0x14], 0x7fffffff
jg 0x1045b87b
jl 0x1045b833
cmp dword [esi + 0x10], 0xffffffff
jae 0x1045b87b
shld ecx, ebx, 7
shl ebx, 7
mov dword [esp + 0x20], ecx
test eax, eax
js 0x1045b860
imul edx
mov edi, eax
mov ecx, edx
add edi, 0x100
adc ecx, 0
shrd edi, ecx, 9
sar ecx, 9
add edi, ebx
adc ecx, dword [esp + 0x20]
jmp 0x1045b8b0
neg eax
mov edi, ebx
imul edx
add eax, 0x100
adc edx, 0
shrd eax, edx, 9
sar edx, 9
sub edi, eax
sbb ecx, edx
jmp 0x1045b8b0
mov dword [esi], closesocket
or edi, 0xffffffff
mov dword [esi + 8], 0xffffffff
mov ecx, closesocket
mov dword [esi + 0xc], closesocket
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], closesocket
mov byte [esi + 0x20], 0
mov dword [esi + 4], 0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0x94]
cmp eax, dword [ebp + 0x14]
jg 0x1045b8ff
jl 0x1045b8d2
mov eax, dword [ecx + 0x90]
cmp eax, dword [ebp + 0x10]
jae 0x1045b8ff
movups xmm0, xmmword [esi]
mov eax, dword [esp + 0xe0]
movups xmmword [ebp], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebp + 0x10], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebp + 0x20], xmm0
mov byte [ecx + 0x144], 1
mov ecx, dword [esp + 0x3c]
mov byte [ecx], al
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov eax, dword [eax + 0x3e7a8]
cmp byte [eax + 0x4d], cl
sete cl
lea ecx, [ecx*2 + 1]
push ecx
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x54]
push dword [esp + 0x5c]
push dword [esp + 0x2c]
call fcn.1009f610
mov ecx, dword [esp + 0xc4]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0xa0
ret