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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffe0
mov eax, 0x8098
call fcn.10512080
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x8094], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x6c], eax
movzx eax, byte [edi + 0x109f2cb8]
movzx edx, byte [edi + 0x109f2ca0]
mov dword [esp + 0x30], edi
mov edi, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
shl eax, 4
mov dword [esp + 0x38], eax
imul edi, edx
mov dword [esp + 0x34], ecx
mov al, byte [eax + 0x10670d90]
mov byte [esp + 0x1e], al
mov eax, dword [ecx + 0x10e8]
mov dword [esp + 0x24], edi
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x40], closesocket
test byte [eax + 0x8c], 8
push edx
je 0x1046a3bb
mov eax, dword [ecx + 0x1b58]
shr esi, 1
push esi
push dword [ecx + 0x28]
lea eax, [eax*2 - 0x10]
push dword [ecx + 0x18]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x90]
push edx
push eax
push edx
push dword [esp + 0x3c]
call dword [0x10b48f98]
jmp 0x1046a3de
push esi
push dword [ecx + 0x28]
lea eax, [esp + 0x8c]
mov dword [esp + 0x38], 0
push dword [ecx + 0x18]
push edx
push eax
push edx
push dword [esp + 0x3c]
call dword [0x10b48a30]
add esp, 0x20
push edi
push dword [esp + 0x2c]
call dword [0x10b48a18]
push dword [esp + 0x2c]
mov esi, eax
mov edi, edx
lea eax, [esp + 0x8c]
push eax
call dword [0x10b48a18]
push dword [esp + 0x34]
sub eax, esi
mov ecx, edx
push dword [esp + 0x3c]
sbb ecx, edi
shld ecx, eax, 5
shl eax, 5
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x98]
push eax
push eax
mov dword [esp + 0x70], ecx
call dword [0x10b48554]
mov esi, dword [esp + 0x54]
add esp, 0x20
cmp byte [esp + 0x1e], 0
mov byte [esp + 0x1d], 0
jle 0x1046a5a3
mov ecx, dword [esp + 0x2c]
mov eax, 1
shl eax, cl
xor edi, edi
sar eax, 1
cdq
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x30]
shl eax, 6
add eax, 0x72d0
mov dword [esp + 0x60], edx
add eax, esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x20], eax
push dword [esp + 0x50]
mov ecx, dword [esp + 0x3c]
push dword [esp + 0x58]
push dword [esp + 0x2c]
mov eax, dword [ecx + 0x10670d9c]
push dword [eax + edi*4]
lea eax, [esp + 0x90]
push eax
call dword [0x10b48550]
movsx ecx, al
mov byte [esp + 0x33], al
mov eax, dword [esp + 0x4c]
shl ecx, 4
add ecx, edi
mov edi, dword [esp + 0x38]
push edi
mov eax, dword [eax + 0x10670d9c]
push dword [eax + ecx*4]
push dword [esp + 0x74]
push dword [esp + 0x48]
call dword [0x10b4854c]
mov ecx, dword [esp + 0x50]
add esp, 0x24
add eax, dword [esp + 0x5c]
adc edx, dword [esp + 0x60]
call fcn.10512520
mov ecx, edx
mov dword [esp + 0x70], eax
lea edx, [esp + 0x78]
mov dword [esp + 0x74], ecx
push edx
lea edx, [esp + 0x48]
push edx
push edi
push ecx
push eax
push 0
push dword [esp + 0x48]
push esi
push dword [esp + 0x84]
call fcn.100643d0
mov ecx, dword [esp + 0x44]
add esp, 0x24
mov eax, dword [esp + 0x44]
add eax, dword [ecx]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x44], eax
imul dword [esi + 0x31cc]
mov edi, eax
mov eax, dword [esp + 0x78]
add edi, 0x100
adc edx, 0
shld ecx, eax, 7
shrd edi, edx, 9
shl eax, 7
sar edx, 9
add edi, eax
adc edx, ecx
cmp edx, dword [esp + 0x40]
jg 0x1046a581
jl 0x1046a54e
cmp edi, dword [esp + 0x3c]
jae 0x1046a581
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x68]
mov al, byte [esp + 0x1d]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x70]
mov byte [ecx], al
mov cl, byte [esp + 0x1f]
mov byte [esi], cl
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x3c], edi
mov dword [ecx], edx
mov edx, dword [esp + 0x74]
mov dword [ecx + 4], edx
jmp 0x1046a585
mov al, byte [esp + 0x1d]
mov edi, dword [esp + 0x48]
inc al
add dword [esp + 0x20], 4
inc edi
mov byte [esp + 0x1d], al
mov dword [esp + 0x48], edi
cmp al, byte [esp + 0x1e]
jl 0x1046a473
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x3c]
pop edi
movsx eax, byte [eax]
add eax, dword [esp + 0x34]
mov eax, dword [esi + eax*4 + 0x72d0]
imul dword [esi + 0x31cc]
mov esi, dword [esp + 0x3c]
add eax, 0x100
adc edx, 0
shrd eax, edx, 9
sar edx, 9
sub ecx, eax
mov eax, ecx
mov ecx, dword [esp + 0x8098]
sbb esi, edx
mov edx, esi
pop esi
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret