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

Disassembly:
sub esp, 0x1d8
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x1d4], eax
mov eax, dword [esp + 0x204]
mov ecx, dword [esp + 0x1ec]
mov edx, dword [esp + 0x1e4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x200]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1f8]
mov dword [esp + 0x48], eax
push ebx
mov ebx, dword [esp + 0x1e0]
push ebp
mov ebp, dword [esp + 0x1e8]
push esi
mov eax, dword [ebx + 0x3ac24]
mov esi, dword [esp + 0x1f4]
push edi
mov edi, dword [ebx + 0x3ac20]
cmp edi, eax
movups xmm0, xmmword [ebp + 0x18]
cmovge edi, eax
mov dword [esp + 0x14], ecx
movzx eax, byte [ecx + 0x1075c290]
mov dword [esp + 0x38], eax
mov dword [esp + 0x78], edi
movzx edi, byte [ecx + 0x1075c278]
mov ecx, dword [edx]
mov eax, edi
imul eax, dword [esp + 0x38]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi]
mov dword [esp + 0x40], ecx
movups xmmword [esp + 0xa4], xmm0
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x20]
mov ecx, eax
imul ecx, dword [esp + 0x38]
movups xmm0, xmmword [ebp + 0x110]
mov dword [esp + 0x2c], eax
mov eax, edi
imul eax, dword [esp + 0x204]
mov dword [esp + 0x98], ebp
imul ecx, dword [esp + 0x200]
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], esi
mov dword [esp + 0x28], edi
movups xmmword [esp + 0xb4], xmm0
add ecx, eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x120]
mov dword [esp + 0x74], eax
mov eax, dword [edx + 0x10]
cmp eax, dword [edx + 0x18]
mov dword [esp + 0x4c], ecx
cmovle eax, dword [edx + 0x18]
push eax
call fcn.100ffb90
mov dword [esp + 0x6c], eax
add esp, 4
mov al, byte [ebx + 0x3adaa]
mov byte [esp + 0x27], al
mov eax, dword [esp + 0x78]
cmp eax, 0x2d0
jl 0x1013a5a6
mov byte [esp + 0x13], 3
jmp 0x1013a5b4
cmp eax, 0x1e0
setge al
inc al
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x58]
movzx edi, word [eax]
movzx edx, word [eax + 2]
mov eax, edx
not eax
movzx ecx, ax
shr ecx, 0xf
movsx eax, dx
add eax, 3
add eax, ecx
sar eax, 3
movzx esi, ax
mov eax, edi
not eax
shl esi, 0x10
movzx ecx, ax
movsx eax, di
add eax, 3
mov edi, dword [esp + 0x2c]
shr ecx, 0xf
add eax, ecx
sar eax, 3
movzx eax, ax
or esi, eax
mov eax, dword [0x1074fdfc]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x28]
add eax, dword [esp + 0x4c]
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x50]
mov dword [ebp + 0x28], edi
mov eax, dword [eax + 0x28]
add eax, dword [esp + 0x4c]
mov dword [ebp + 0x110], eax
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x120], edi
mov dword [ebp + 0x118], eax
cmp edi, dword [ebx + 0x5de20]
jne 0x1013a64a
lea eax, [ebx + 0x5d1bc]
jmp 0x1013a67b
cmp edi, dword [ebx + 0x634f8]
jne 0x1013a65a
lea eax, [ebx + 0x62894]
jmp 0x1013a67b
cmp edi, dword [ebp + 0x1fd3c]
je 0x1013a675
push 0
lea eax, [ebp + 0x1f0d8]
push edi
push eax
call dword [0x106cd574]
add esp, 0xc
lea eax, [ebp + 0x1e470]
mov edx, dword [ebx]
mov dword [esp + 0x30], eax
movzx eax, byte [ebx + 0x6d660]
mov cl, byte [eax + edx + 0x1780]
mov eax, dword [ebx + 0x3e7a8]
push dword [eax + 0x48]
movzx eax, cl
push dword [edx + eax*4 + 0xaad4]
call fcn.100c9b40
push 0
push 1
push dword [esp + 0x40]
lea eax, [esp + 0x48]
push esi
push eax
mov eax, dword [esp + 0x30]
push eax
push ebp
lea eax, [esp + 0x164]
push ebx
push eax
fstp qword [esp + 0xac]
call fcn.10100740
mov al, byte [esp + 0x3f]
add esp, 0x2c
cmp dword [ebx + 0x5ce40], 1
mov dword [esp + 0x180], 1
mov byte [esp + 0x1ac], al
jne 0x1013a715
cvttsd2si ecx, qword [esp + 0x80]
xor eax, eax
mov dword [esp + 0x188], 2
cmp ecx, 0x14
setg al
mov dword [esp + 0x184], eax
cmp byte [ebx + 0x5cdec], 0
je 0x1013a72e
cmp dword [ebx + 0x5ce44], 0
je 0x1013a72e
mov ecx, 1
jmp 0x1013a730
xor ecx, ecx
push 0
lea eax, [esp + 0xc8]
xor edx, edx
push eax
lea eax, [esp + 0x24]
test ecx, ecx
push eax
lea eax, [esp + 0x1dc]
cmove eax, edx
push eax
push dword [esp + 0x78]
lea eax, [esp + 0x154]
push eax
push esi
call fcn.100ff600
add esp, 0x1c
cmp byte [esp + 0x27], 1
jne 0x1013a7e4
movsx esi, word [esp + 0x1c]
movsx edx, word [esp + 0x1e]
shl dword [esp + 0x14], 6
mov ecx, dword [ebx]
lea eax, [esi*8]
imul esi, edi
mov word [esp + 0x1c], ax
lea eax, [edx*8]
mov word [esp + 0x1e], ax
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x4c]
push edi
add esi, edx
add esi, dword [esp + 0x54]
mov eax, dword [eax + 0x28]
add eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x5c]
push edi
add esi, dword [eax + 0x28]
mov eax, dword [esp + 0x24]
push esi
mov eax, dword [eax + ecx + 0xc5d8]
call eax
mov ecx, dword [esp + 0x2c]
xor edx, edx
shr ecx, 1
add esp, 0x14
add eax, ecx
mov esi, dword [esp + 0x1c]
div dword [esp + 0x18]
mov edx, eax
mov dword [esp + 0x14], eax
jmp 0x1013abbc
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x1d0]
push eax
lea eax, [esp + 0x38]
push eax
push edi
push ebp
lea eax, [esp + 0xe0]
push ebx
push eax
call fcn.101009f0
mov eax, dword [esp + 0x36]
lea edx, [esp + 0x94]
mov ecx, dword [esp + 0x34]
push 0
push edx
shl eax, 3
lea edx, [esp + 0xbc]
push edx
movzx eax, ax
lea edx, [esp + 0x40]
push edx
shl eax, 0x10
lea edx, [esp + 0xec]
shl ecx, 3
movzx ecx, cx
or eax, ecx
mov byte [esp + 0x100], 0
push edx
push eax
lea eax, [esp + 0x100]
mov byte [esp + 0x144], 3
push eax
lea ecx, [ebx + 0x3abf0]
mov byte [esp + 0x12c], 4
push ecx
lea eax, [ebp + 0xe0]
mov dword [esp + 0xfc], 0
push eax
mov eax, dword [ebx + 0x5d1b8]
call eax
mov ecx, dword [esp + 0x54]
xor edx, edx
shr ecx, 1
add esp, 0x3c
add eax, ecx
mov esi, dword [esp + 0x1c]
div dword [esp + 0x18]
cmp byte [esp + 0x20c], 0
mov edx, eax
mov dword [esp + 0x94], esi
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], edx
mov dword [eax], esi
je 0x1013abbc
shl edi, 4
mov edx, esi
shr edx, 0x10
mov dword [esp + 0x18], 0
mov eax, dword [edi + 0x106341dc]
mov dword [esp + 0x6c], eax
movzx ecx, byte [eax + 0x1075c290]
movzx eax, byte [eax + 0x1075c278]
mov dword [esp + 0x8c], eax
imul eax, ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x5c], eax
mov eax, edx
not eax
movzx ecx, ax
shr ecx, 0xf
movsx eax, dx
xor edx, edx
add eax, 3
mov dword [esp + 0x40], edx
add eax, ecx
sar eax, 3
movzx edi, ax
mov eax, esi
not eax
shl edi, 0x10
movzx ecx, ax
movsx eax, word [esp + 0x1c]
add eax, 3
shr ecx, 0xf
add eax, ecx
sar eax, 3
movzx eax, ax
or edi, eax
cmp dword [esp + 0x38], edx
jbe 0x1013abb8
mov esi, dword [esp + 0x64]
xor ecx, ecx
imul esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x60], 0
test eax, eax
je 0x1013ab6b
mov eax, dword [esp + 0x5c]
mov esi, ecx
mov ecx, dword [esp + 0x18]
shr eax, 1
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x54]
lea ecx, [eax + ecx*4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x3c]
sub ecx, eax
mov dword [esp + 0x88], ecx
nop dword [eax + eax]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
push 0
push 1
mov eax, dword [eax + 0x28]
push dword [esp + 0x38]
add eax, esi
add eax, ecx
mov dword [ebp + 0x18], eax
lea eax, [esi + ecx]
mov ecx, dword [esp + 0x5c]
push edi
add eax, dword [ecx + 0x28]
mov dword [ebp + 0x110], eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x80]
lea eax, [esp + 0x158]
push ebp
push ebx
push eax
call fcn.10100740
mov al, byte [esp + 0x37]
add esp, 0x24
cmp dword [ebx + 0x5ce40], 1
mov dword [esp + 0x180], 1
mov byte [esp + 0x1ac], al
jne 0x1013aa1b
cvttsd2si ecx, qword [esp + 0x80]
xor eax, eax
mov dword [esp + 0x188], 2
cmp ecx, 0x14
setg al
mov dword [esp + 0x184], eax
cmp byte [ebx + 0x5cdec], 0
je 0x1013aa34
cmp dword [ebx + 0x5ce44], 0
je 0x1013aa34
mov ecx, 1
jmp 0x1013aa36
xor ecx, ecx
push 0
lea eax, [esp + 0xc8]
xor edx, edx
push eax
lea eax, [esp + 0x24]
test ecx, ecx
push eax
lea eax, [esp + 0x1dc]
cmove eax, edx
push eax
push dword [esp + 0x78]
lea eax, [esp + 0x154]
push eax
push edi
call fcn.100ff600
lea eax, [esp + 0x1ec]
push eax
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x90]
lea eax, [esp + 0xf8]
push ebp
push ebx
push eax
call fcn.101009f0
mov eax, dword [esp + 0x52]
mov ecx, dword [esp + 0x50]
shl eax, 3
movzx eax, ax
shl ecx, 3
shl eax, 0x10
movzx ecx, cx
or eax, ecx
mov byte [esp + 0x10c], 0
push 0
lea ecx, [esp + 0xb4]
mov byte [esp + 0x14c], 3
push ecx
lea ecx, [esp + 0xd8]
mov byte [esp + 0x134], 4
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x104], 0
push ecx
lea ecx, [esp + 0x108]
push ecx
push eax
lea eax, [esp + 0x11c]
push eax
lea eax, [ebx + 0x3abf0]
push eax
lea eax, [ebp + 0xe0]
push eax
mov eax, dword [ebx + 0x5d1b8]
call eax
add eax, dword [esp + 0xf8]
xor edx, edx
div dword [esp + 0xb4]
mov edx, dword [esp + 0x84]
add esp, 0x58
mov ecx, dword [esp + 0x88]
inc dword [esp + 0x18]
add esi, dword [esp + 0x8c]
mov dword [ecx + edx], eax
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
add edx, 4
mov eax, dword [esp + 0x60]
add eax, dword [esp + 0x8c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x60], eax
cmp eax, dword [esp + 0x28]
jl 0x1013a990
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x90]
add edx, dword [esp + 0x64]
add ecx, esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
cmp edx, dword [esp + 0x38]
jl 0x1013a950
movups xmm0, xmmword [esp + 0xa4]
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x94]
movups xmmword [ebp + 0x18], xmm0
mov dword [ebp + 0x28], eax
movups xmm0, xmmword [esp + 0xb4]
mov eax, dword [esp + 0x74]
movups xmmword [ebp + 0x110], xmm0
mov dword [ebp + 0x120], eax
jmp 0x1013abf6
mov edx, dword [esp + 0x14]
cmp byte [esp + 0x20c], 0
movups xmm0, xmmword [esp + 0xa4]
mov eax, dword [esp + 0x70]
movups xmmword [ebp + 0x18], xmm0
mov dword [ebp + 0x28], eax
movups xmm0, xmmword [esp + 0xb4]
mov eax, dword [esp + 0x74]
movups xmmword [ebp + 0x110], xmm0
mov dword [ebp + 0x120], eax
je 0x1013acb2
xorps xmm0, xmm0
mov ebp, closesocket
movlpd qword [esp + 0x80], xmm0
mov edi, closesocket
mov eax, dword [esp + 0x84]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
mov ecx, edi
mov edi, dword [eax + ebx*4]
mov eax, edi
cdq
add dword [esp + 0x28], eax
mov eax, edi
adc dword [esp + 0x18], edx
cmp ebp, edi
mov edx, dword [esp + 0x14]
cmovl eax, ebp
mov dword [esp + 0x14], edx
cmp ecx, edi
mov ebp, eax
cmovg edi, ecx
inc ebx
cmp ebx, 4
jl 0x1013ac24
mov ecx, dword [esp + 0x28]
mov eax, edx
mov ebx, dword [esp + 0x18]
sub edi, ebp
mov ebp, dword [esp + 0x98]
shl eax, 4
shld ebx, ecx, 2
sub eax, edx
cdq
shl ecx, 2
cmp edx, ebx
jg 0x1013ac83
jl 0x1013ac7e
cmp eax, ecx
jae 0x1013ac83
cmp edi, 0x30
jl 0x1013acae
mov edx, dword [esp + 0x14]
lea eax, [edx*8]
sub eax, edx
add eax, eax
cdq
cmp edx, ebx
jg 0x1013ad18
jl 0x1013aca5
cmp eax, ecx
jae 0x1013ad18
cmp edi, 0x18
jge 0x1013ad18
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x3c]
mov dword [ecx], esi
mov dword [eax], edx
mov dword [ecx + 4], esi
mov dword [eax + 4], edx
mov dword [ecx + 8], esi
mov dword [eax + 8], edx
mov dword [ecx + 0xc], esi
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 0x1b58]
mov esi, 0xc
sub ecx, 8
mov eax, 3
cmp dword [esp + 0x78], 0x2d0
pop edi
cmovge eax, esi
pop esi
shl eax, cl
pop ebp
pop ebx
cmp edx, eax
jle 0x1013ad03
mov ecx, dword [esp + 0x48]
mov eax, dword [0x1074fdfc]
mov dword [ecx], eax
mov ecx, dword [esp + 0x1d4]
xor ecx, esp
call fcn.105116c0
add esp, 0x1d8
ret
mov edx, dword [esp + 0x14]
jmp 0x1013acd0