Function at 0x1002ad70
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x3080
call fcn.10039ee0
mov eax, dword [0x10063c04]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
mov dword [esp + 0x28], eax
jne 0x1002ada2
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x3080
ret
mov edi, dword [esp + 0x3094]
mov ebp, dword [edi + 0x10]
mov ebx, dword [edi + 0xc]
mov esi, dword [edi + 0x8e]
mov dword [esp + 0x20], ebx
test ebp, ebp
mov dword [esp + 0x18], esi
je 0x1002b742
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1002b742
test ebx, ebx
jne 0x1002ae02
test esi, esi
je 0x1002ae06
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x1002adee
mov eax, dword [edi + 0x20]
test eax, eax
je 0x1002ae87
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x1002ae13
mov edx, dword [edi + 0x28]
push edx
push 2
push 0x6d
jmp 0x1002b74a
test esi, esi
je 0x1002addc
mov ecx, dword [edi + 0x28]
push ecx
push 2
push 0x6a
jmp 0x1002b74a
mov ebx, dword [esp + 0x28]
push eax
lea esi, [ebx + 0x1348]
push esi
call fcn.10031950
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 2
jge 0x1002ae40
mov eax, dword [edi + 0x28]
push eax
push 2
push 0x6e
jmp 0x1002b74a
mov al, byte [ebx + 0x1349]
cmp al, 0x3a
je 0x1002ae60
cmp byte [esi], 0x5c
jne 0x1002ae53
cmp al, 0x5c
je 0x1002ae60
mov ecx, dword [edi + 0x28]
push ecx
push 2
push 0x6f
jmp 0x1002b74a
lea edi, [ebx + 0x4608]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.1001fb50
add esp, 4
test eax, eax
jne 0x1002ae87
push 0x100596b4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add eax, 0xf
push eax
push 2
call edi
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x38], ebx
jne 0x1002aeb6
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x3080
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x1002aeda
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x3080
ret
push 0x960
push 2
mov ebx, 0x258
call edi
test eax, eax
mov dword [esp + 0x14], eax
je 0x1002b00a
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x1002af1c
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x3080
ret
mov edi, dword [esp + 0x1c]
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 edx, dword [esp + 0x1c]
mov edi, esi
mov dword [esp + 0x24], 1
mov dword [esp + 0x10], 0
mov dword [edx], esi
mov al, byte [esi]
test al, al
je 0x1002b04f
mov ebp, 0x960
mov al, byte [edi]
mov ecx, dword [esp + 0x10]
cmp al, 0x22
jne 0x1002af92
test ecx, ecx
je 0x1002af77
mov dword [esp + 0x10], 0
jmp 0x1002af96
mov dword [esp + 0x10], 1
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
cmp byte [edi], 0
jne 0x1002af5f
jmp 0x1002b01a
test ecx, ecx
jne 0x1002af7f
cmp al, 0x20
jne 0x1002af7f
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
mov byte [edi], 0
inc edi
mov dword [ecx + eax*4], edi
inc eax
cmp eax, ebx
mov dword [esp + 0x24], eax
jl 0x1002af88
mov esi, dword [esp + 0x14]
add ebx, 0xa
push esi
add ebp, 0x28
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x42
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov esi, eax
test esi, esi
je 0x1002afff
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x1002afe8
jmp 0x1002af88
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x3080
ret
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x3080
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002b04f
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1002b038
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x3094]
mov ecx, dword [eax + 0x28]
push ecx
push 2
push 0x81
jmp 0x1002b74a
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x3094]
push edx
call fcn.1002a8c0
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x34], ebx
jne 0x1002b707
mov esi, dword [esp + 0x20]
test esi, esi
je 0x1002b086
mov ebp, dword [esp + 0x18]
lea eax, [esi + 0x26]
jmp 0x1002b08d
mov ebp, dword [esp + 0x18]
lea eax, [ebp + 0x46]
mov cl, byte [eax]
test cl, cl
je 0x1002b0aa
mov edi, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x2f
jne 0x1002b0a1
mov byte [eax], 0x5c
push eax
call edi
mov cl, byte [eax]
test cl, cl
jne 0x1002b099
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x1002b1a6
test esi, esi
je 0x1002b0fe
test dword [esi + 0x12a], 0x10000
jne 0x1002b6f7
mov esi, dword [esp + 0x20]
test esi, esi
je 0x1002b10b
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x1090]
lea esi, [ebp + 0x26]
push esi
push eax
call fcn.10029de0
add esp, 8
lea ecx, [esp + 0x90]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1002b136
test dword [ebp + 0x18], 0x10000
jne 0x1002b6f7
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1090]
lea esi, [edx + 0x46]
push esi
push eax
call fcn.10029de0
add esp, 8
lea ecx, [esp + 0x90]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [esp + 0x20]
mov esi, dword [sym.imp.USER32.dll_CharUpperA]
lea edx, [esp + 0x1090]
push edx
call esi
lea eax, [esp + 0x90]
push eax
call esi
mov ecx, dword [esp + 0x3094]
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x1002b174
lea edx, [esp + 0x1090]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1002b6f7
mov eax, dword [esp + 0x28]
test byte [eax + 0x4e9a], 8
jne 0x1002b6f7
mov edi, dword [esp + 0x3094]
mov ecx, dword [edi + 0x1c]
test ecx, ecx
jne 0x1002b1d9
mov ecx, dword [edi + 0x20]
test ecx, ecx
jne 0x1002b1d9
xor ebx, ebx
mov ebp, 1
jmp 0x1002b33b
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x1002b0d1
test esi, esi
je 0x1002b1c7
lea eax, [esi + 0x26]
push eax
push eax
call fcn.10030250
add esp, 8
jmp 0x1002b0d1
lea eax, [ebp + 0x46]
push eax
push eax
call fcn.10030250
add esp, 8
jmp 0x1002b10b
add eax, 0x4608
push eax
lea eax, [esp + 0x2894]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x1002b21e
test ebp, ebp
je 0x1002b206
lea ecx, [ebp + 0x26]
lea edx, [esp + 0x2890]
push ecx
push edx
jmp 0x1002b22e
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x2890]
lea eax, [esi + 0x46]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x1002b238
lea edx, [esp + 0x1090]
lea eax, [esp + 0x2890]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [esp + 0x18]
push 0
push 0x80
push 3
push 0
push 3
lea ecx, [esp + 0x28a4]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x1002b27c
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x1002b270
xor ebx, ebx
mov ebp, 1
jmp 0x1002b33b
mov ebx, 1
xor ebp, ebp
jmp 0x1002b33b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x2890]
push edx
call fcn.100300f0
mov ebx, eax
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
add esp, 4
test ebp, ebp
stosw word es:[edi], ax
je 0x1002b2f6
mov ax, word [ebp + 0x14]
mov word [esp + 0x3c], ax
mov cx, word [ebp + 0x17]
mov word [esp + 0x3e], cx
mov dx, word [ebp + 0x1a]
mov word [esp + 0x40], dx
mov ax, word [ebp + 0x1e]
mov word [esp + 0x42], ax
mov cx, word [ebp + 0x21]
mov word [esp + 0x44], cx
mov edx, dword [ebp + 0x12e]
push edx
lea eax, [esp + 0x74]
push str._02ld
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov cx, word [esp + 0x7c]
add esp, 0xc
jmp 0x1002b327
mov dx, word [esi + 0x26]
mov word [esp + 0x3c], dx
mov ax, word [esi + 0x29]
mov word [esp + 0x3e], ax
mov cx, word [esi + 0x2e]
mov word [esp + 0x40], cx
mov dx, word [esi + 0x32]
mov word [esp + 0x42], dx
mov ax, word [esi + 0x35]
mov word [esp + 0x44], ax
mov cx, word [esi + 0x38]
lea edx, [esp + 0x3c]
mov word [esp + 0x46], cx
push edx
call fcn.1002ff50
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], 0
test eax, eax
jle 0x1002b6f7
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
jmp 0x1002b369
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp edi, 1
je 0x1002b6f3
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x890]
mov edx, dword [ecx]
push edx
push eax
call fcn.10031950
lea ecx, [esp + 0x898]
lea edx, [esp + 0x2098]
push ecx
push edx
call fcn.10029de0
add esp, 0x10
lea eax, [esp + 0x2090]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea ecx, [esp + 0x890]
push 0x100596b4
push ecx
call fcn.10033400
test eax, eax
jne 0x1002b42f
lea edx, [esp + 0x1090]
push edx
call esi
test eax, eax
jne 0x1002b3f0
lea eax, [esp + 0x890]
push 0x10059818
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1002b6d3
jmp 0x1002b6ce
mov ecx, dword [esp + 0x3094]
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x1002b418
lea edx, [esp + 0x90]
push 0x100596b4
push edx
call fcn.10033400
test eax, eax
jne 0x1002b6d3
lea eax, [esp + 0x890]
push 0
lea ecx, [esp + 0x1094]
push eax
push ecx
jmp 0x1002b5bc
lea edx, [esp + 0x890]
push 0x100596b4
push edx
call fcn.10033400
test eax, eax
je 0x1002b5d9
lea eax, [esp + 0x2090]
push eax
call esi
test eax, eax
je 0x1002b5d9
lea ecx, [esp + 0x890]
lea edx, [esp + 0x1890]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x1890]
push 0x5c
push eax
call fcn.10033450
lea ecx, [esp + 0x90]
mov byte [eax + 1], 0
push ecx
call fcn.1001fb50
add esp, 4
test eax, eax
je 0x1002b514
lea edx, [esp + 0x1890]
lea eax, [esp + 0x90]
push edx
push eax
call fcn.10033400
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x1002b6d3
lea edx, [esp + 0x1890]
push edx
call esi
mov edx, eax
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x14], edx
call esi
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x1002b6ce
mov edx, dword [esp + 0x3094]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x1002b6d3
lea eax, [esp + 0x2090]
push 0x10059818
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1002b6d3
jmp 0x1002b6ce
lea ecx, [esp + 0x1890]
lea edx, [esp + 0x90]
push ecx
push edx
call fcn.10033400
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x1002b6d3
mov edx, dword [esp + 0x3094]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x1002b55a
lea eax, [esp + 0x2090]
push 0
lea ecx, [esp + 0x1094]
push eax
push ecx
jmp 0x1002b5bc
lea edx, [esp + 0x1890]
lea eax, [esp + 0x90]
push edx
push eax
call fcn.10033400
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x1002b6d3
lea edx, [esp + 0x1890]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x8f]
lea eax, [esp + 0x90]
push 0x5c
push eax
call fcn.10033450
cmp esi, eax
jne 0x1002b6d3
lea ecx, [esp + 0x2090]
push 0
lea edx, [esp + 0x1094]
push ecx
push edx
call fcn.10029e70
add esp, 0xc
test eax, eax
jne 0x1002b6d3
cmp ebx, ebp
jae 0x1002b6d3
jmp 0x1002b6ce
lea eax, [esp + 0x890]
push 0x100596b4
push eax
call fcn.10033400
test eax, eax
je 0x1002b6d3
lea ecx, [esp + 0x2090]
push ecx
call esi
test eax, eax
jne 0x1002b6d3
lea edx, [esp + 0x90]
push edx
call fcn.1001fb50
add esp, 4
test eax, eax
je 0x1002b66f
lea eax, [esp + 0x890]
lea ecx, [esp + 0x90]
push eax
push ecx
call fcn.10033400
lea edx, [esp + 0x90]
cmp eax, edx
jne 0x1002b6d3
lea eax, [esp + 0x890]
push eax
call esi
lea ecx, [esp + 0x90]
mov edx, eax
push ecx
mov dword [esp + 0x14], edx
call esi
mov edx, dword [esp + 0x10]
cmp eax, edx
je 0x1002b6ce
mov eax, dword [esp + 0x3094]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x1002b6d3
jmp 0x1002b6ce
lea ecx, [esp + 0x890]
lea edx, [esp + 0x90]
push ecx
push edx
call fcn.10033400
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x1002b6d3
mov edx, dword [esp + 0x3094]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x1002b6a3
cmp ebx, ebp
jae 0x1002b6d3
jmp 0x1002b6ce
lea eax, [esp + 0x90]
push 0x100596b4
push eax
call fcn.10033400
lea ecx, [esp + 0x90]
push 0x5c
push ecx
mov esi, eax
call fcn.10033450
cmp esi, eax
jne 0x1002b6d3
cmp ebx, ebp
jae 0x1002b6d3
mov edi, 1
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
jl 0x1002b363
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002b057
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x1002b72b
push edi
call ebp
push edi
call esi
mov eax, dword [esp + 0x10]
pop edi
neg eax
sbb eax, eax
pop esi
not eax
and eax, ebx
pop ebp
pop ebx
add esp, 0x3080
ret
mov edx, dword [edi + 0x28]
push edx
push 2
push 0x68
call fcn.10033300
add esp, 8
push eax
push 0x2f
call fcn.10028a10
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3080
ret