Function at 0x5b9080
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x38
push ebx
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x1c], ebp
movzx eax, word [ebp + 0xb2]
shr eax, 1
push eax
push ebx
call fcn.005bb7a0
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x5b90b9
push ecx
mov ecx, ebx
call fcn.00598e20
mov ecx, eax
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x68]
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
cmp eax, 0xffffffff
je 0x5b934c
cmp eax, dword [ebp + 0x40]
jne 0x5b934c
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
push edx
push ebx
push dword [esp + 0x68]
mov dword [esp + 0x3c], 0
push dword [esp + 0x68]
mov dword [esp + 0x44], connect
push dword [esp + 0x68]
push dword [esp + 0x68]
push eax
push ecx
mov ecx, ebp
call fcn.005b8d30
mov esi, dword [esp + 0x30]
test esi, esi
je 0x5b9324
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [esi*4 + 0x7f]
and ecx, 0xffffff80
mov dword [esp + 0x54], ecx
mov esi, dword [eax + 0xc]
mov dword [esp + 0x50], esi
lea edx, [ecx + esi]
cmp ecx, dword [eax + 8]
jg 0x5b9152
cmp edx, dword [eax + 0x10]
ja 0x5b9152
mov dword [eax + 0xc], edx
jmp 0x5b9160
push ecx
mov ecx, eax
call fcn.0046a3c0
mov esi, eax
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x30]
xor edi, edi
test ecx, ecx
jle 0x5b91f0
xor ebx, ebx
mov esi, dword [esp + 0x2c]
add esi, ebx
movzx eax, word [esi]
cmp ax, 0xffff
jne 0x5b91b6
movzx eax, word [esi + 4]
cmp ax, 0xffff
jne 0x5b918d
mov eax, ebp
jmp 0x5b91a0
mov ecx, dword [esp + 0x10]
push 0
cwde
push eax
mov ecx, dword [ecx + 0x64]
add ecx, 0x38
call fcn.0046b890
movsx ecx, word [esi + 2]
mov eax, dword [eax + 0x68]
mov edx, ecx
shl edx, 4
sub edx, ecx
mov eax, dword [eax + 8]
lea eax, [eax + edx*4]
jmp 0x5b91d3
movsx ecx, ax
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x30]
movsx eax, word [esi + 2]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [edx + 8]
lea eax, [eax + ecx*4]
push dword [eax + 0x2c]
mov ecx, ebp
call fcn.005b8510
mov esi, dword [esp + 0x50]
add ebx, 6
mov dword [esi + edi*4], eax
inc edi
mov ecx, dword [esp + 0x30]
cmp edi, ecx
jl 0x5b9170
push dword [esp + 0x4c]
push ecx
push esi
mov ecx, ebp
call fcn.005bbb50
mov edi, dword [esp + 0x6c]
mov edx, eax
mov dword [esp + 0x50], edx
mov ecx, dword [edi + 8]
and ecx, 0x3fffffff
cmp dword [edi + 4], ecx
jne 0x5b9229
push 0x10
push edi
push 0x7d8954
call fcn.00467c00
mov edx, dword [esp + 0x5c]
add esp, 0xc
mov ecx, dword [edi + 4]
shl ecx, 4
add ecx, dword [edi]
je 0x5b9252
or ebx, 0xffffffff
mov eax, 0xfffffffe
mov word [ecx], ax
mov word [ecx + 2], bx
mov word [ecx + 4], bx
mov word [ecx + 6], ax
mov word [ecx + 8], bx
mov word [ecx + 0xa], bx
mov eax, dword [edi + 4]
lea edx, [edx + edx*2]
mov ecx, dword [esp + 0x2c]
mov ebx, eax
add edx, edx
shl ebx, 4
add ebx, dword [edi]
inc eax
mov dword [edi + 4], eax
mov eax, dword [ecx + edx]
mov dword [ebx], eax
movzx eax, word [ecx + edx + 4]
mov word [ebx + 4], ax
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + edx]
mov dword [ebx + 6], eax
movzx eax, word [ecx + edx + 4]
mov word [ebx + 0xa], ax
mov edi, dword [esp + 0x2c]
add edi, edx
movzx eax, word [edi]
cmp ax, 0xffff
jne 0x5b92cb
movzx eax, word [edi + 4]
cmp ax, 0xffff
je 0x5b92b8
mov ecx, dword [esp + 0x10]
push 0
cwde
push eax
mov ecx, dword [ecx + 0x64]
add ecx, 0x38
call fcn.0046b890
mov ebp, eax
movsx eax, word [edi + 2]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [ebp + 0x68]
mov eax, dword [eax + 8]
jmp 0x5b92e5
movsx ecx, ax
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x30]
movsx eax, word [edi + 2]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [edx + 8]
lea eax, [eax + ecx*4]
mov eax, dword [eax + 0x2c]
mov dword [ebx + 0xc], eax
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x54]
lea edx, [ecx + 0xf]
and edx, 0xfffffff0
cmp ecx, dword [eax + 8]
jg 0x5b931b
lea ecx, [edx + esi]
cmp ecx, dword [eax + 0xc]
jne 0x5b931b
cmp dword [eax + 0x14], esi
je 0x5b931b
mov dword [eax + 0xc], esi
jmp 0x5b9324
push edx
push esi
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], 0
test eax, eax
js 0x5b9ba5
and eax, 0x3fffffff
lea eax, [eax + eax*2]
add eax, eax
push eax
push dword [esp + 0x30]
jmp 0x5b9b98
push dword [esp + 0x54]
mov ecx, ebp
call fcn.005b8510
mov edi, dword [esp + 0x5c]
lea ecx, [esp + 0x2c]
mov esi, dword [esp + 0x58]
push ecx
push ebx
mov ebx, dword [esp + 0x68]
mov ecx, ebp
push 0
push ebx
push edi
push esi
push dword [esp + 0x68]
mov dword [esp + 0x48], 0
push eax
push dword [esp + 0x34]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], connect
call fcn.005b8da0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push dword [esp + 0x6c]
mov ecx, ebp
mov dword [esp + 0x2c], 0
push 1
push ebx
push edi
push esi
push dword [esp + 0x68]
mov dword [esp + 0x44], connect
push 0xffffffffffffffff
push dword [esp + 0x34]
call fcn.005b8da0
mov esi, dword [esp + 0x2c]
or ebx, 0xffffffff
cmp dword [esp + 0x30], 0
mov eax, 0xfffffffe
mov word [esp + 0x38], ax
mov word [esp + 0x3a], bx
mov word [esp + 0x3c], bx
mov word [esp + 0x3e], ax
mov word [esp + 0x40], bx
mov word [esp + 0x42], bx
mov word [esp + 0x14], ax
mov word [esp + 0x16], bx
mov word [esp + 0x4c], bx
jle 0x5b9499
movzx eax, word [esi]
mov edi, esi
cmp ax, bx
jne 0x5b9455
movzx eax, word [esi + 4]
cmp ax, bx
jne 0x5b9428
mov eax, ebp
jmp 0x5b943f
mov ecx, dword [esp + 0x10]
push 0
cwde
push eax
mov ecx, dword [ecx + 0x64]
add ecx, 0x38
call fcn.0046b890
mov esi, dword [esp + 0x2c]
movsx ecx, word [edi + 2]
mov eax, dword [eax + 0x68]
mov edx, ecx
shl edx, 4
sub edx, ecx
mov eax, dword [eax + 8]
lea eax, [eax + edx*4]
jmp 0x5b9472
movsx ecx, ax
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x30]
movsx eax, word [esi + 2]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [edx + 8]
lea eax, [eax + ecx*4]
test byte [eax + 0x3a], 2
je 0x5b9492
cmp word [esi], 0xffff
movsx eax, word [esi + 2]
jne 0x5b948a
add eax, dword [ebp + 0x88]
jmp 0x5b948d
add eax, dword [ebp + 0x7c]
test byte [eax], 2
je 0x5b9499
mov byte [esp + 0x50], 1
jmp 0x5b949e
mov byte [esp + 0x50], 0
cmp dword [esp + 0x24], 0
mov edi, dword [esp + 0x20]
jle 0x5b953e
movzx eax, word [edi]
mov dword [esp + 0x54], edi
cmp ax, 0xffff
jne 0x5b94fd
movzx eax, word [edi + 4]
cmp ax, 0xffff
jne 0x5b94c8
mov eax, ebp
jmp 0x5b94e3
mov ecx, dword [esp + 0x10]
push 0
cwde
push eax
mov ecx, dword [ecx + 0x64]
add ecx, 0x38
call fcn.0046b890
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
mov eax, dword [eax + 0x68]
movsx ecx, word [ecx + 2]
mov eax, dword [eax + 8]
mov edx, ecx
shl edx, 4
sub edx, ecx
lea eax, [eax + edx*4]
jmp 0x5b951a
movsx ecx, ax
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x30]
movsx eax, word [edi + 2]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [edx + 8]
lea eax, [eax + ecx*4]
test byte [eax + 0x3a], 2
je 0x5b953a
cmp word [edi], 0xffff
movsx eax, word [edi + 2]
jne 0x5b9532
add eax, dword [ebp + 0x88]
jmp 0x5b9535
add eax, dword [ebp + 0x7c]
test byte [eax], 2
je 0x5b953e
mov al, 1
jmp 0x5b9540
xor al, al
cmp byte [esp + 0x50], 0
je 0x5b964f
test al, al
je 0x5b9643
movzx eax, word [esi]
mov dword [esp + 0x50], esi
cmp ax, 0xffff
jne 0x5b95a7
movzx eax, word [esi + 4]
cmp ax, 0xffff
jne 0x5b956e
mov eax, ebp
jmp 0x5b9589
mov ecx, dword [esp + 0x10]
push 0
cwde
push eax
mov ecx, dword [ecx + 0x64]
add ecx, 0x38
call fcn.0046b890
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x50]
mov eax, dword [eax + 0x68]
movsx ecx, word [ecx + 2]
mov eax, dword [eax + 8]
mov edx, ecx
shl edx, 4
sub edx, ecx
lea ecx, [eax + edx*4]
mov dword [esp + 0x50], ecx
jmp 0x5b95c8
movsx ecx, ax
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x30]
movsx eax, word [esi + 2]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [edx + 8]
lea eax, [eax + ecx*4]
mov dword [esp + 0x50], eax
movzx eax, word [edi]
mov dword [esp + 0x4c], edi
cmp ax, 0xffff
jne 0x5b9618
movzx eax, word [edi + 4]
cmp ax, 0xffff
jne 0x5b95e3
mov eax, ebp
jmp 0x5b95fe
mov ecx, dword [esp + 0x10]
push 0
cwde
push eax
mov ecx, dword [ecx + 0x64]
add ecx, 0x38
call fcn.0046b890
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax + 0x68]
movsx ecx, word [ecx + 2]
mov eax, dword [eax + 8]
mov edx, ecx
shl edx, 4
sub edx, ecx
lea ecx, [eax + edx*4]
jmp 0x5b9635
movsx ecx, ax
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x30]
movsx eax, word [edi + 2]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [edx + 8]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x50]
mov ax, word [eax + 0x38]
cmp ax, word [ecx + 0x38]
jl 0x5b9653
mov ecx, dword [esi]
mov dx, word [esi + 4]
mov dword [esp + 0x14], ecx
jmp 0x5b9668
test al, al
je 0x5b965f
mov ecx, dword [edi]
mov dx, word [edi + 4]
mov dword [esp + 0x14], ecx
jmp 0x5b9668
mov ecx, dword [esp + 0x14]
mov dx, word [esp + 0x4c]
mov eax, ecx
shr eax, 0x10
test ax, ax
js 0x5b973e
cmp word [esp + 0x14], 0xffff
mov dword [esp + 0x38], ecx
mov word [esp + 0x3c], dx
mov dword [esp + 0x3e], ecx
mov word [esp + 0x42], dx
jne 0x5b96cc
cmp dx, 0xffff
je 0x5b96b5
mov eax, dword [esp + 0x10]
push 0
mov ecx, dword [eax + 0x64]
movsx eax, dx
add ecx, 0x38
push eax
call fcn.0046b890
mov esi, dword [esp + 0x2c]
mov ebp, eax
mov edi, dword [esp + 0x20]
movsx ecx, word [esp + 0x16]
mov eax, dword [ebp + 0x68]
mov edx, ecx
shl edx, 4
sub edx, ecx
mov eax, dword [eax + 8]
lea eax, [eax + edx*4]
jmp 0x5b96ec
movsx ecx, word [esp + 0x14]
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x30]
movsx eax, word [esp + 0x16]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [edx + 8]
lea eax, [eax + ecx*4]
mov ebx, dword [esp + 0x6c]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 8]
and eax, 0x3fffffff
cmp dword [ebx + 4], eax
jne 0x5b971c
push 0x10
push ebx
push 0x7d8954
call fcn.00467c00
mov esi, dword [esp + 0x38]
add esp, 0xc
mov edi, dword [esp + 0x20]
mov eax, dword [ebx + 4]
shl eax, 4
add eax, dword [ebx]
je 0x5b9736
movups xmm0, xmmword [esp + 0x38]
movups xmmword [eax], xmm0
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
inc dword [ebx + 4]
jmp 0x5b9b3f
cmp dword [esp + 0x30], 0
setg al
test al, al
je 0x5b99c7
cmp dword [esp + 0x24], 0
jle 0x5b984a
movzx eax, word [esi]
mov dword [esp + 0x50], esi
cmp ax, 0xffff
jne 0x5b97ad
movzx eax, word [esi + 4]
cmp ax, 0xffff
jne 0x5b9774
mov eax, ebp
jmp 0x5b978f
mov ecx, dword [esp + 0x10]
push 0
cwde
push eax
mov ecx, dword [ecx + 0x64]
add ecx, 0x38
call fcn.0046b890
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x50]
mov eax, dword [eax + 0x68]
movsx ecx, word [ecx + 2]
mov eax, dword [eax + 8]
mov edx, ecx
shl edx, 4
sub edx, ecx
lea ecx, [eax + edx*4]
mov dword [esp + 0x50], ecx
jmp 0x5b97ce
movsx ecx, ax
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x30]
movsx eax, word [esi + 2]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [edx + 8]
lea eax, [eax + ecx*4]
mov dword [esp + 0x50], eax
movzx eax, word [edi]
mov dword [esp + 0x4c], edi
cmp ax, 0xffff
jne 0x5b981e
movzx eax, word [edi + 4]
cmp ax, 0xffff
jne 0x5b97e9
mov eax, ebp
jmp 0x5b9804
mov ecx, dword [esp + 0x10]
push 0
cwde
push eax
mov ecx, dword [ecx + 0x64]
add ecx, 0x38
call fcn.0046b890
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax + 0x68]
movsx ecx, word [ecx + 2]
mov eax, dword [eax + 8]
mov edx, ecx
shl edx, 4
sub edx, ecx
lea ecx, [eax + edx*4]
jmp 0x5b983b
movsx ecx, ax
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x30]
movsx eax, word [edi + 2]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [edx + 8]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x50]
mov ax, word [eax + 0x38]
cmp ax, word [ecx + 0x38]
setge al
test al, al
je 0x5b99c7
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 8]
and ecx, 0x3fffffff
cmp ecx, edx
jge 0x5b9899
add ecx, ecx
mov eax, edx
cmp edx, ecx
push 0x10
cmovl eax, ecx
push eax
mov eax, dword [esp + 0x74]
push eax
push 0x7d8954
call fcn.00467b80
mov esi, dword [esp + 0x3c]
add esp, 0x10
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x50]
mov ecx, dword [eax + 4]
sub edx, ecx
shl ecx, 4
add ecx, 0xa
test edx, edx
jle 0x5b98e6
add ecx, dword [eax]
mov ebp, 0xfffffffe
nop
lea eax, [ecx - 0xa]
test eax, eax
je 0x5b98ce
mov word [ecx - 0xa], bp
mov word [ecx - 8], bx
mov word [ecx - 6], bx
mov word [ecx - 4], bp
mov word [ecx - 2], bx
mov word [ecx], bx
add ecx, 0x10
sub edx, 1
jne 0x5b98b0
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x30], 0
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov dword [esp + 0x50], 0
jle 0x5b9b3f
xor edi, edi
xor ebx, ebx
mov ecx, dword [eax]
mov eax, dword [esi + ebx]
mov dword [ecx + edi], eax
movzx eax, word [esi + ebx + 4]
mov word [ecx + edi + 4], ax
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [edx + ebx]
mov dword [ecx + edi + 6], eax
movzx eax, word [edx + ebx + 4]
mov word [ecx + edi + 0xa], ax
mov esi, dword [esp + 0x2c]
add esi, ebx
movzx eax, word [esi]
cmp ax, 0xffff
jne 0x5b9977
movzx eax, word [esi + 4]
cmp ax, 0xffff
jne 0x5b994e
mov eax, ebp
jmp 0x5b9961
mov ecx, dword [esp + 0x10]
push 0
cwde
push eax
mov ecx, dword [ecx + 0x64]
add ecx, 0x38
call fcn.0046b890
movsx ecx, word [esi + 2]
mov eax, dword [eax + 0x68]
mov edx, ecx
shl edx, 4
sub edx, ecx
mov eax, dword [eax + 8]
lea edx, [eax + edx*4]
jmp 0x5b9994
movsx ecx, ax
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x30]
movsx eax, word [esi + 2]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [edx + 8]
lea edx, [eax + ecx*4]
mov eax, dword [esp + 0x6c]
add ebx, 6
mov ecx, dword [eax]
mov eax, dword [edx + 0x2c]
mov dword [edi + ecx + 0xc], eax
add edi, 0x10
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x30]
jge 0x5b9b3b
mov eax, dword [esp + 0x6c]
jmp 0x5b9904
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x50], edx
mov ecx, dword [eax + 8]
and ecx, 0x3fffffff
cmp ecx, edx
jge 0x5b9a0e
add ecx, ecx
mov eax, edx
cmp edx, ecx
push 0x10
cmovl eax, ecx
push eax
mov eax, dword [esp + 0x74]
push eax
push 0x7d8954
call fcn.00467b80
mov esi, dword [esp + 0x3c]
add esp, 0x10
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x50]
mov ecx, dword [eax + 4]
sub edx, ecx
shl ecx, 4
add ecx, 0xa
test edx, edx
jle 0x5b9a5a
add ecx, dword [eax]
mov ebp, 0xfffffffe
lea eax, [ecx - 0xa]
test eax, eax
je 0x5b9a42
mov word [ecx - 0xa], bp
mov word [ecx - 8], bx
mov word [ecx - 6], bx
mov word [ecx - 4], bp
mov word [ecx - 2], bx
mov word [ecx], bx
add ecx, 0x10
sub edx, 1
jne 0x5b9a24
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x24], 0
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov dword [esp + 0x50], 0
jle 0x5b9b3f
xor esi, esi
xor ebx, ebx
mov ecx, dword [eax]
mov eax, dword [edi + ebx]
mov dword [ecx + esi], eax
movzx eax, word [edi + ebx + 4]
mov word [ecx + esi + 4], ax
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax]
mov eax, dword [edx + ebx]
mov dword [ecx + esi + 6], eax
movzx eax, word [edx + ebx + 4]
mov word [ecx + esi + 0xa], ax
mov edi, dword [esp + 0x20]
add edi, ebx
movzx eax, word [edi]
cmp ax, 0xffff
jne 0x5b9aeb
movzx eax, word [edi + 4]
cmp ax, 0xffff
jne 0x5b9ac2
mov eax, ebp
jmp 0x5b9ad5
mov ecx, dword [esp + 0x10]
push 0
cwde
push eax
mov ecx, dword [ecx + 0x64]
add ecx, 0x38
call fcn.0046b890
movsx ecx, word [edi + 2]
mov eax, dword [eax + 0x68]
mov edx, ecx
shl edx, 4
sub edx, ecx
mov eax, dword [eax + 8]
lea edx, [eax + edx*4]
jmp 0x5b9b08
movsx ecx, ax
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax + ecx*4]
mov edx, dword [eax + 0x30]
movsx eax, word [edi + 2]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [edx + 8]
lea edx, [eax + ecx*4]
mov eax, dword [esp + 0x6c]
add ebx, 6
mov ecx, dword [eax]
mov eax, dword [edx + 0x2c]
mov dword [esi + ecx + 0xc], eax
add esi, 0x10
mov eax, dword [esp + 0x50]
inc eax
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x24]
jge 0x5b9b37
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x6c]
jmp 0x5b9a78
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], 0
test eax, eax
js 0x5b9b6c
and eax, 0x3fffffff
mov ecx, 0x7d8954
lea eax, [eax + eax*2]
add eax, eax
push eax
mov eax, dword [0x7d8954]
push edi
call dword [eax + 0x10]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], connect
mov dword [esp + 0x30], 0
test eax, eax
js 0x5b9ba5
and eax, 0x3fffffff
lea eax, [eax + eax*2]
add eax, eax
push eax
push esi
mov eax, dword [0x7d8954]
mov ecx, 0x7d8954
call dword [eax + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x24