Function at 0x5abdb0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x694
mov eax, dword [0x6eeaa0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
mov dword [esp + 0x34], edi
jne 0x5abde0
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x694
ret
mov ebx, dword [esp + 0x6a8]
mov ebp, dword [ebx + 0x10]
mov esi, dword [ebx + 0xc]
test ebp, ebp
mov dword [esp + 0x2c], esi
je 0x5ac654
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x5ac654
test esi, esi
jne 0x5abe19
mov ecx, dword [ebx + 0x28]
push ecx
push 2
push 0x6a
jmp 0x5ac65c
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x5abe2b
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x5abeaf
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x5abe3f
mov edx, dword [ebx + 0x28]
push edx
push 2
push 0x6d
jmp 0x5ac65c
lea esi, [edi + 0x41c]
push eax
push esi
call fcn.005b19d0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jge 0x5abe68
mov eax, dword [ebx + 0x28]
push eax
push 2
push 0x6e
jmp 0x5ac65c
mov al, byte [edi + 0x41d]
cmp al, 0x3a
je 0x5abe88
cmp byte [esi], 0x5c
jne 0x5abe7b
cmp al, 0x5c
je 0x5abe88
mov ecx, dword [ebx + 0x28]
push ecx
push 2
push 0x6f
jmp 0x5ac65c
add edi, 0xb1c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.005bf6f0
add esp, 4
test eax, eax
jne 0x5abeaf
push 0x6723a0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0xf
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
mov dword [esp + 0x30], edi
jne 0x5abef7
mov edx, dword [ebx + 0x28]
push edx
push 2
push 0x70
call fcn.005b1da0
add esp, 8
push eax
push 4
call fcn.005aa420
add esp, 0xc
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x694
ret
push edi
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov esi, eax
test esi, esi
jne 0x5abf36
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebx + 0x28]
push eax
push 2
push 0x70
call fcn.005b1da0
add esp, 8
push eax
push 4
call fcn.005aa420
add esp, 0xc
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x694
ret
push 0x960
push 2
mov ebx, 0x258
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
je 0x5ac045
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x5abf7c
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x694
ret
mov edi, dword [esp + 0x14]
mov ecx, 0x258
xor eax, eax
push ebp
rep stosd dword es:[edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
mov ecx, dword [esp + 0x14]
mov edi, esi
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], 0
mov dword [ecx], esi
mov al, byte [esi]
test al, al
je 0x5ac086
mov ebp, 0x960
mov al, byte [edi]
mov ecx, dword [esp + 0x10]
cmp al, 0x22
jne 0x5abfef
test ecx, ecx
je 0x5abfd7
mov dword [esp + 0x10], 0
jmp 0x5abff3
mov dword [esp + 0x10], 1
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
cmp byte [edi], 0
jne 0x5abfbf
jmp 0x5ac055
test ecx, ecx
jne 0x5abfdf
cmp al, 0x20
jne 0x5abfdf
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov byte [edi], 0
inc edi
mov dword [edx + eax*4], edi
inc eax
cmp eax, ebx
mov dword [esp + 0x18], eax
jl 0x5abfe8
mov eax, dword [esp + 0x1c]
add ebp, 0x28
push 0x40
push ebp
push eax
add ebx, 0xa
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov esi, eax
test esi, esi
je 0x5ac045
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x14], eax
je 0x5ac03e
jmp 0x5abfe8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x694
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5ac086
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x6a8]
mov edx, dword [ecx + 0x28]
push edx
push 2
push 0x81
jmp 0x5ac65c
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x6a8]
push eax
call fcn.005abb20
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x28], edi
jne 0x5ac619
mov ebp, dword [esp + 0x2c]
lea esi, [ebp + 0x26]
mov eax, esi
mov cl, byte [eax]
test cl, cl
je 0x5ac0d2
mov edi, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x2f
jne 0x5ac0c9
mov byte [eax], 0x5c
push eax
call edi
mov cl, byte [eax]
test cl, cl
jne 0x5ac0c1
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0x34]
test eax, eax
je 0x5ac0ef
test dword [ebp + 0x12a], 0x10000
jne 0x5ac609
jmp 0x5ac100
mov eax, dword [edi + 0x38]
test eax, eax
je 0x5ac100
push esi
push esi
call fcn.005b0490
add esp, 8
lea ecx, [esp + 0x294]
push esi
push ecx
call fcn.005ab0a0
add esp, 8
lea edx, [esp + 0x6c]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [esp + 0x294]
push eax
call ebx
lea ecx, [esp + 0x6c]
push ecx
call ebx
mov edx, dword [esp + 0x6a8]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x5ac158
lea eax, [esp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x5ac609
test byte [edi + 0xc60], 8
jne 0x5ac609
mov ebx, dword [esp + 0x6a8]
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x5ac186
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x5ac186
xor ebx, ebx
mov ebp, 1
jmp 0x5ac28f
add edi, 0xb1c
lea ecx, [esp + 0x5a0]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebx + 0x30]
test eax, eax
jne 0x5ac1ad
lea edx, [esp + 0x5a0]
push esi
push edx
jmp 0x5ac1bd
lea eax, [esp + 0x294]
lea ecx, [esp + 0x5a0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 3
lea edx, [esp + 0x5b4]
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x5ac207
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x5ac1fb
xor ebx, ebx
mov ebp, 1
jmp 0x5ac28f
mov ebx, 1
xor ebp, ebp
jmp 0x5ac28f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x5a0]
push eax
call fcn.005b0330
mov ebx, eax
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [ebp + 0x14]
mov word [esp + 0x3c], cx
mov dx, word [ebp + 0x17]
mov word [esp + 0x3e], dx
mov ax, word [ebp + 0x1a]
mov word [esp + 0x40], ax
mov cx, word [ebp + 0x1e]
mov word [esp + 0x42], cx
mov dx, word [ebp + 0x21]
mov word [esp + 0x44], dx
mov eax, dword [ebp + 0x12e]
push eax
lea ecx, [esp + 0x178]
push str._02ld
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov dx, word [esp + 0x180]
lea eax, [esp + 0x48]
push eax
mov word [esp + 0x56], dx
call fcn.005b0190
add esp, 0x14
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], 0
test eax, eax
jle 0x5ac609
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
jmp 0x5ac2bd
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp edi, 1
je 0x5ac605
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x190]
mov eax, dword [edx]
push eax
push ecx
call fcn.005b19d0
lea edx, [esp + 0x198]
lea eax, [esp + 0x3a0]
push edx
push eax
call fcn.005ab0a0
add esp, 0x10
lea ecx, [esp + 0x398]
push ecx
call dword [sym.imp.USER32.dll_CharUpperA]
lea edx, [esp + 0x190]
push 0x6723a0
push edx
call fcn.005b1ed0
test eax, eax
jne 0x5ac377
lea eax, [esp + 0x294]
push eax
call esi
test eax, eax
jne 0x5ac344
lea ecx, [esp + 0x190]
push 0x6742bc
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x5ac5e5
jmp 0x5ac5e0
mov edx, dword [esp + 0x6a8]
mov eax, dword [edx + 0x34]
test eax, eax
jne 0x5ac369
lea eax, [esp + 0x6c]
push 0x6723a0
push eax
call fcn.005b1ed0
test eax, eax
jne 0x5ac5e5
push 0
lea ecx, [esp + 0x194]
jmp 0x5ac4dd
lea eax, [esp + 0x190]
push 0x6723a0
push eax
call fcn.005b1ed0
test eax, eax
je 0x5ac503
lea ecx, [esp + 0x398]
push ecx
call esi
test eax, eax
je 0x5ac503
lea edx, [esp + 0x190]
lea eax, [esp + 0x49c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x49c]
push 0x5c
push ecx
call fcn.005b1f60
lea edx, [esp + 0x6c]
mov byte [eax + 1], 0
push edx
call fcn.005bf6f0
add esp, 4
test eax, eax
je 0x5ac450
lea eax, [esp + 0x49c]
lea ecx, [esp + 0x6c]
push eax
push ecx
call fcn.005b1ed0
lea edx, [esp + 0x6c]
cmp eax, edx
jne 0x5ac5e5
lea eax, [esp + 0x49c]
push eax
call esi
lea ecx, [esp + 0x6c]
mov edx, eax
push ecx
mov dword [esp + 0x14], edx
call esi
mov edx, dword [esp + 0x10]
cmp eax, edx
je 0x5ac5e0
mov eax, dword [esp + 0x6a8]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x5ac5e5
lea ecx, [esp + 0x398]
push 0x6742bc
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x5ac5e5
jmp 0x5ac5e0
lea edx, [esp + 0x49c]
lea eax, [esp + 0x6c]
push edx
push eax
call fcn.005b1ed0
lea ecx, [esp + 0x6c]
cmp eax, ecx
jne 0x5ac5e5
mov edx, dword [esp + 0x6a8]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x5ac490
lea eax, [esp + 0x398]
push 0
lea ecx, [esp + 0x298]
push eax
push ecx
jmp 0x5ac4e6
lea edx, [esp + 0x49c]
lea eax, [esp + 0x6c]
push edx
push eax
call fcn.005b1ed0
lea ecx, [esp + 0x6c]
cmp eax, ecx
jne 0x5ac5e5
lea edx, [esp + 0x49c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x6b]
lea eax, [esp + 0x6c]
push 0x5c
push eax
call fcn.005b1f60
cmp esi, eax
jne 0x5ac5e5
push 0
lea ecx, [esp + 0x39c]
lea edx, [esp + 0x298]
push ecx
push edx
call fcn.005ab130
add esp, 0xc
test eax, eax
jne 0x5ac5e5
cmp ebx, ebp
jae 0x5ac5e5
jmp 0x5ac5e0
lea eax, [esp + 0x190]
push 0x6723a0
push eax
call fcn.005b1ed0
test eax, eax
je 0x5ac5e5
lea ecx, [esp + 0x398]
push ecx
call esi
test eax, eax
jne 0x5ac5e5
lea edx, [esp + 0x6c]
push edx
call fcn.005bf6f0
add esp, 4
test eax, eax
je 0x5ac58d
lea eax, [esp + 0x190]
lea ecx, [esp + 0x6c]
push eax
push ecx
call fcn.005b1ed0
lea edx, [esp + 0x6c]
cmp eax, edx
jne 0x5ac5e5
lea eax, [esp + 0x190]
push eax
call esi
lea ecx, [esp + 0x6c]
mov edx, eax
push ecx
mov dword [esp + 0x14], edx
call esi
mov edx, dword [esp + 0x10]
cmp eax, edx
je 0x5ac5e0
mov eax, dword [esp + 0x6a8]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x5ac5e5
jmp 0x5ac5e0
lea ecx, [esp + 0x190]
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.005b1ed0
lea ecx, [esp + 0x6c]
cmp eax, ecx
jne 0x5ac5e5
mov edx, dword [esp + 0x6a8]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x5ac5bb
cmp ebx, ebp
jae 0x5ac5e5
jmp 0x5ac5e0
lea eax, [esp + 0x6c]
push 0x6723a0
push eax
call fcn.005b1ed0
lea ecx, [esp + 0x6c]
push 0x5c
push ecx
mov esi, eax
call fcn.005b1f60
cmp esi, eax
jne 0x5ac5e5
cmp ebx, ebp
jae 0x5ac5e5
mov edi, 1
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
jl 0x5ac2b7
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5ac08e
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
not eax
and eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x694
ret
mov edx, dword [ebx + 0x28]
push edx
push 2
push 0x68
call fcn.005b1da0
add esp, 8
push eax
push 0x2f
call fcn.005aa420
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x694
ret