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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x48], eax
movups xmm0, xmmword [esp + 0x74]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, dword [esp + 0x54]
movups xmmword [esp + 0x24], xmm0
push ebp
movups xmm0, xmmword [esp + 0x8c]
cmp dword [ebx + 0x5cdd4], 0
mov ebp, dword [esp + 0x60]
push esi
mov esi, dword [esp + 0x70]
movups xmmword [esp + 0x3c], xmm0
push edi
movq xmm0, qword [esp + 0xa4]
mov edi, dword [esp + 0x80]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], eax
movq qword [esp + 0x50], xmm0
je 0x1045a9c1
cmp dword [esp + 0x44], 0
jg 0x1045a9c1
jl 0x1045a958
cmp dword [esp + 0x40], 0
jae 0x1045a9c1
mov dword [edi + 0x160], 0xffffffff
mov dword [edi + 0x164], closesocket
mov byte [edi + 0x170], 0
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 ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.105116c0
add esp, 0x4c
ret
push eax
push dword [esp + 0x74]
push dword [esp + 0x74]
push ebp
push ecx
push ebx
call fcn.10457520
add esp, 0x18
cmp dword [ebx + 0x5cdcc], 0
je 0x1045aa26
cmp dword [edi + 0x178], 0
je 0x1045aa26
mov eax, dword [edi + 0x150]
mov dword [esi], eax
mov eax, dword [edi + 0x158]
mov ecx, dword [edi + 0x15c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [edi + 0x160]
mov ecx, dword [edi + 0x164]
pop edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.105116c0
add esp, 0x4c
ret
mov eax, dword [ebx + 0x3e7a8]
xor ecx, ecx
mov edx, dword [esp + 0x6c]
cmp byte [eax + 0x4d], cl
sete cl
lea ecx, [ecx*2 + 1]
mov dword [esp + 0x1c], ecx
mov cl, byte [ebx + 0x3eb60]
mov byte [esp + 0x20], cl
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x28], ecx
movzx eax, byte [eax + 0x109bf494]
mov dword [esp + 0x24], eax
dec eax
mov dword [esp + 0x14], eax
test edx, eax
jne 0x1045aab5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
and dword [esp + 0x14], ecx
movzx eax, byte [eax + 0x109bf494]
add eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x24]
jl 0x1045aab5
mov eax, ecx
mov ecx, dword [esp + 0x18]
sub eax, dword [ecx + 8]
mov ecx, dword [esp + 0x28]
sar eax, cl
push eax
mov eax, edx
mov edx, dword [esp + 0x1c]
sub eax, dword [edx]
sar eax, cl
push eax
lea eax, [edx + 0x5cd0]
push eax
mov eax, dword [ebx + 0x8f33c]
call eax
add esp, 0xc
mov eax, dword [ebp + 0x10b0]
lea edx, [edi + 0x110]
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov dword [ecx], eax
mov al, byte [esp + 0x78]
mov byte [ecx + 4], al
lea eax, [ebp + 0x23f81]
mov dword [ebp + 0x10c8], eax
lea ecx, [ebp + 8]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + 0x109bf494]
mov dword [ebp + 0x10cc], eax
nop dword [eax + eax]
mov eax, dword [edx - 0xc]
lea edx, [edx + 4]
mov dword [ecx + 4], eax
lea ecx, [ecx + 0x48]
mov eax, dword [edx - 4]
mov dword [ecx - 0x48], eax
mov eax, dword [edx + 8]
mov dword [ecx - 0x4c], eax
mov eax, dword [edx + 0x14]
mov dword [ecx - 0x40], eax
mov eax, dword [edx + 0x20]
mov dword [ecx - 0x3c], eax
sub esi, 1
jne 0x1045ab00
mov eax, dword [edi + 0xf8]
lea ecx, [ebp + 0xe0]
mov dword [ecx + 0x80], eax
mov eax, dword [edi + 0xfc]
push 0
push dword [esp + 0x14]
mov dword [ecx + 0x5b8], eax
lea eax, [ebp + 0x18]
mov dword [edi + 0x148], esi
mov esi, dword [esp + 0x1c]
push eax
push ecx
push ebx
and byte [esi + 0x9f], 0xbf
mov byte [esi + 0x88], 0
call fcn.1010f6b0
push 0
push ebp
push ebx
mov dword [ebp + 0x243a4], eax
call fcn.10144f50
mov eax, dword [ebp + 0x31cc]
push esi
push dword [esp + 0x44]
mov dword [esp + 0x44], eax
push dword [esp + 0x38]
push dword [esp + 0x9c]
push dword [esp + 0x9c]
push ebp
push ebx
call fcn.1045c9e0
mov edx, dword [ebp + 0x31cc]
mov ecx, 1
mov eax, edx
sar eax, 6
cmp eax, ecx
cmovg ecx, eax
lea eax, [esp + 0x6c]
push eax
push edx
mov dword [ebp + 0x141d4], ecx
call fcn.10454ed0
add esp, 0x44
cmp dword [ebx + 0x5cdd4], 0
jne 0x1045abe3
or ecx, 0xffffffff
mov edx, closesocket
jmp 0x1045abeb
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov al, byte [ebx + 0x3abf0]
mov esi, dword [esp + 0x2c]
test al, al
je 0x1045ac5e
cmp al, 2
je 0x1045ac5e
cmp byte [ebx + 0x3d230], 0
je 0x1045ac45
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + 0x9f]
and eax, 7
test byte [ebx + eax*4 + 0x3d2b4], 0x40
je 0x1045ac45
push edx
push ecx
mov ecx, dword [esp + 0x20]
push edi
push dword [esp + 0x1c]
push esi
push dword [esp + 0x84]
push dword [esp + 0x84]
push ebp
push ecx
push ebx
call fcn.101654c0
add esp, 0x28
jmp 0x1045ac70
push edx
push ecx
mov ecx, dword [esp + 0x20]
push edi
push dword [esp + 0x1c]
push esi
push ebp
push ecx
push ebx
call fcn.101636f0
add esp, 0x20
jmp 0x1045ac70
push edx
push ecx
push edi
push dword [esp + 0x1c]
push esi
push ebp
push ebx
call fcn.10165960
add esp, 0x1c
mov ecx, dword [esi]
cmp ecx, 0x7fffffff
je 0x1045ac9e
cmp byte [esp + 0x20], 2
jne 0x1045ac9e
mov eax, dword [esp + 0x10]
cmp eax, 6
jl 0x1045ac9e
push ecx
push dword [esp + 0x74]
push dword [esp + 0x74]
push eax
push ebp
push ebx
call fcn.1013bbe0
add esp, 0x18
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x31cc], eax
mov eax, dword [esi]
cmp eax, 0x7fffffff
jne 0x1045acbb
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], eax
mov dword [edi + 0x150], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [edi + 0x15c], ecx
mov dword [edi + 0x158], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov dword [edi + 0x164], ecx
mov ecx, dword [esp + 0x58]
mov dword [edi + 0x160], eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x4c
ret