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

Disassembly:
sub esp, 0x310
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x30c], eax
mov eax, dword [esp + 0x31c]
push ebx
push ebp
mov ebp, dword [esp + 0x320]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x330]
push esi
mov dword [esp + 0x28], eax
lea esi, [ebp + 0xe0]
mov eax, dword [esp + 0x338]
push edi
mov edi, dword [esp + 0x324]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x344]
mov dword [esp + 0x60], eax
lea eax, [edi + 0x3abf0]
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xfd0]
push 0x50
push 0
mov dword [esp + 0x18], ebp
mov ebx, dword [eax]
lea eax, [esp + 0x254]
push eax
mov dword [esp + 0x28], esi
call fcn.10513d40
xor eax, eax
mov dword [esp + 0x58], 0xffffffff
xor ecx, ecx
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0x3adb8]
add esp, 0xc
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x50], closesocket
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x5c], eax
mov word [esp + 0x20], 0x200
cmp dword [edi + 0x5cf30], ecx
jne 0x1048cc85
cmp byte [ebx + 0x15], cl
jg 0x1048cc85
cmp byte [edi + 0x3adb3], cl
je 0x1048cc85
movzx eax, byte [edi + 0x3adad]
push eax
push ebx
push esi
push dword [esi + 0x1ac8]
call fcn.1048c270
add esp, 0x10
mov ecx, 2
cmp al, 2
je 0x1048cc8a
mov ecx, 1
movsx eax, byte [ebx + 0x14]
lea edx, [ebp + 0x14d94]
imul eax, eax, 0x84
lea edi, [esp + 0x94]
mov esi, ebx
add edx, eax
add eax, 0x14dd4
add eax, ebp
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], eax
mov edx, 1
movzx eax, byte [ebx + 0x1d]
test eax, eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0x24c]
cmove ecx, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], ecx
mov ecx, 0x29
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [esp + 0x38], ecx
nop dword [eax]
nop word [eax + eax]
mov al, byte [esp + ecx + 0x20]
lea esi, [esp + 0x94]
mov ecx, 0x29
mov edi, ebx
or ebp, 0xffffffff
mov edx, closesocket
rep movsd dword es:[edi], dword [esi]
mov byte [ebx + 0x1c], al
test al, al
jne 0x1048cddc
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
push 0
push 0
push edi
push 0
push dword [esp + 0x344]
mov dword [ebx + 0x18], 0
push dword [esp + 0x344]
push ebp
push dword [esp + 0x4c]
call fcn.101152f0
mov esi, dword [esp + 0x34]
add esp, 0x20
cmp dword [esp + 0x340], 0
je 0x1048cd91
push 0xffffffffffffffff
push 0
push dword [esp + 0x354]
push dword [esp + 0x354]
push 1
push dword [esp + 0x3c]
push esi
push ebp
push dword [esp + 0x30]
push dword [esp + 0x358]
push dword [esp + 0x358]
push edi
push dword [esp + 0x54]
call fcn.1048b4f0
add esp, 0x34
jmp 0x1048cdaa
push 0
push 1
push 0
push esi
push ebp
push dword [esp + 0x24]
push edi
push dword [esp + 0x40]
call fcn.1048b360
add esp, 0x20
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x3bb8]
movzx eax, byte [eax + 0x40]
push eax
push dword [ecx + 0x1c8]
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
call fcn.1007f1e0
add dword [esi], eax
add esp, 0x10
mov eax, dword [esi]
imul dword [ebp + 0x31cc]
jmp 0x1048d064
cmp al, 2
jne 0x1048d091
mov ebp, dword [esp + 0x10]
xor edx, edx
mov ecx, dword [esp + 0x5c]
cmp ecx, 4
mov byte [ebx + 0x40], 3
lea eax, [ebp + 0x31e8]
mov dword [esp + 0x68], eax
movzx eax, cx
cmove eax, edx
movzx eax, ax
mov ecx, eax
shl ecx, 0x10
or ecx, eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x18], ecx
lea esi, [eax*8]
push esi
push dword [esp + 0x4c]
lea eax, [esp + 0x2e4]
push eax
call fcn.105137c0
push esi
push dword [esp + 0x54]
lea eax, [esp + 0x2b0]
push eax
call fcn.105137c0
mov cl, byte [ebx + 0x1d]
add esp, 0x18
mov edi, dword [esp + 0x2c]
cmp cl, 1
jbe 0x1048ce76
push edi
movzx eax, cl
push eax
lea eax, [esp + 0x2a4]
push eax
lea eax, [esp + 0x2e8]
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.100b98a0
mov cl, al
add esp, 0x14
mov byte [ebx + 0x1d], cl
push dword [esp + 0x334]
lea eax, [ebx + 0x20]
push dword [esp + 0x334]
push eax
movsx eax, word [ebx + 0xe]
push eax
movsx eax, word [ebx + 0xc]
push eax
push edi
lea eax, [esp + 0x2b4]
push eax
lea eax, [esp + 0x2f8]
push eax
movzx eax, cl
push eax
call fcn.1022f7f0
add esp, 0x24
test eax, eax
jne 0x1048d089
cmp byte [ebx + 5], 0x10
jne 0x1048cfa9
movups xmm0, xmmword [ebx + 0x20]
mov eax, dword [ebx + 0x40]
mov esi, dword [ebx + 0xc]
movups xmmword [esp + 0x74], xmm0
mov dword [esp + 0x64], eax
movups xmm0, xmmword [ebx + 0x30]
mov al, byte [ebx + 0x1d]
push 0
push ebp
movups xmmword [esp + 0x8c], xmm0
mov byte [esp + 0x23], al
call fcn.100bcdd0
push 0
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push eax
push edi
push ebp
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x1f4]
push ebp
push eax
call fcn.101009f0
push dword [ebp + 0x5ce68]
movzx eax, byte [ebp + 0x5ce64]
push eax
push dword [esp + 0x68]
lea eax, [esp + 0x208]
push dword [esp + 0x70]
push dword [esp + 0x78]
push edi
push eax
lea eax, [ebp + 0x3abf0]
mov ebp, dword [esp + 0x58]
push eax
push ebp
call fcn.10100e00
mov eax, dword [ebx + 0xc]
lea ecx, [ebx + 0xc]
add esp, 0x44
cmp eax, dword [esp + 0x34]
je 0x1048d0d9
cmp esi, eax
je 0x1048cf82
mov eax, dword [esp + 0x10]
push 0x6c
mov eax, dword [eax + 0xa97c]
push dword [eax + 0x80010]
push eax
lea eax, [esp + 0x40]
push eax
push ecx
call fcn.10100bf0
mov ecx, dword [esp + 0x74]
add esp, 0x14
mov dword [ecx], eax
jmp 0x1048cfad
movups xmm0, xmmword [esp + 0x74]
mov al, byte [esp + 0x1b]
mov dword [ecx], esi
mov ecx, dword [esp + 0x64]
movups xmmword [ebx + 0x20], xmm0
mov byte [ebx + 0x1d], al
movups xmm0, xmmword [esp + 0x84]
movups xmmword [ebx + 0x30], xmm0
mov dword [ebx + 0x40], ecx
jmp 0x1048cfad
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
xor esi, esi
mov ecx, 2
mov eax, dword [edx + 0x3bb8]
cmp byte [eax + 0x4d], 0
cmovne ecx, esi
push ecx
push esi
push edi
push esi
push dword [esp + 0x344]
push dword [esp + 0x344]
push ebp
push edx
call fcn.101152f0
add esp, 0x20
cmp dword [esp + 0x340], esi
mov esi, dword [esp + 0x14]
je 0x1048d029
push 0xffffffffffffffff
push 0
push dword [esp + 0x354]
push dword [esp + 0x354]
push 1
push dword [esp + 0x3c]
push esi
push ebp
push dword [esp + 0x30]
push dword [esp + 0x358]
push dword [esp + 0x358]
push edi
push dword [esp + 0x54]
call fcn.1048b4f0
add esp, 0x34
jmp 0x1048d042
push 0
push 1
push 0
push esi
push ebp
push dword [esp + 0x24]
push edi
push dword [esp + 0x40]
call fcn.1048b360
add esp, 0x20
movzx eax, byte [ebx + 0x1c]
lea ecx, [edi + edi*2]
add ecx, eax
mov eax, dword [esp + 0x68]
mov eax, dword [eax + ecx*4 + 0x47d8]
mov ecx, dword [esp + 0x10]
add dword [esi], eax
mov eax, dword [esi]
imul dword [ecx + 0x31cc]
mov ecx, dword [esi + 0xc]
mov ebp, eax
mov eax, dword [esi + 8]
add ebp, 0x100
adc edx, 0
shld ecx, eax, 7
shrd ebp, edx, 9
shl eax, 7
sar edx, 9
add ebp, eax
adc edx, ecx
jmp 0x1048d095
or ebp, 0xffffffff
mov edx, closesocket
mov esi, dword [esp + 0x14]
cmp edx, dword [esp + 0x50]
jg 0x1048d0d5
jl 0x1048d0a3
cmp ebp, dword [esp + 0x4c]
jae 0x1048d0d5
mov eax, dword [esp + 0x38]
lea edi, [esp + 0x138]
mov dword [esp + 0x54], eax
mov ecx, 0x29
movzx eax, byte [esi + 0x20]
mov esi, ebx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
add dword [esp + 0x14], 0x28
inc ecx
mov dword [esp + 0x38], ecx
cmp ecx, dword [esp + 0x6c]
jl 0x1048ccf0
mov edi, ebx
lea esi, [esp + 0x138]
mov ebx, dword [esp + 0x70]
mov ecx, 0x29
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x54]
lea edx, [esi + esi*4]
mov eax, dword [esp + edx*8 + 0x24c]
mov ecx, dword [esp + edx*8 + 0x258]
mov dword [ebx], eax
mov eax, dword [esp + edx*8 + 0x254]
mov dword [ebx + 8], eax
mov eax, dword [esp + edx*8 + 0x264]
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + edx*8 + 0x268]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esp + 0x3c]
test eax, eax
jne 0x1048d151
test ecx, ecx
jne 0x1048d151
xor al, al
jmp 0x1048d153
mov al, 1
mov byte [ebx + 0x20], al
mov eax, dword [esp + 0x28]
mov dword [eax], ecx
cmp esi, 1
jge 0x1048d187
mov eax, dword [esp + 0x2c]
push 0
push 0
push eax
push 0
push dword [esp + 0x344]
push dword [esp + 0x344]
push ebp
push dword [esp + 0x4c]
call fcn.101152f0
add esp, 0x20
mov ecx, dword [esp + 0x31c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x310
ret