Function at 0x63228340
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x3080
call fcn.63212950
mov eax, dword [0x6325fbe0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x63228372
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x3080
ret
mov esi, dword [esp + 0x3094]
mov ebp, dword [esi + 0x10]
test ebp, ebp
je 0x63228c76
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
call edi
test eax, eax
je 0x63228c76
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x8e]
test eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
jne 0x632283d9
test ecx, ecx
je 0x632283dd
push ebp
call edi
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 0x632283ea
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x3080
ret
test ecx, ecx
je 0x632283ae
mov ecx, dword [esi + 0x28]
push ecx
push 2
push 0x6a
jmp 0x63228c7e
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x6322840e
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 0x6322853e
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x63228450
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 0x63228583
mov ebp, 0x960
mov al, byte [edi]
mov ecx, dword [esp + 0x10]
cmp al, 0x22
jne 0x632284c6
test ecx, ecx
je 0x632284ab
mov dword [esp + 0x10], 0
jmp 0x632284ca
mov dword [esp + 0x10], 1
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
cmp byte [edi], 0
jne 0x63228493
jmp 0x6322854e
test ecx, ecx
jne 0x632284b3
cmp al, 0x20
jne 0x632284b3
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 0x632284bc
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 0x63228533
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x6322851c
jmp 0x632284bc
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 0x63228583
mov esi, dword [esp + 0x14]
test esi, esi
je 0x6322856c
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 0x63228c7e
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x3094]
push edx
call fcn.63227e70
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x34], ebx
jne 0x63228c3b
mov esi, dword [esp + 0x20]
test esi, esi
je 0x632285ba
mov ebp, dword [esp + 0x18]
lea eax, [esi + 0x26]
jmp 0x632285c1
mov ebp, dword [esp + 0x18]
lea eax, [ebp + 0x46]
mov cl, byte [eax]
test cl, cl
je 0x632285de
mov edi, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x2f
jne 0x632285d5
mov byte [eax], 0x5c
push eax
call edi
mov cl, byte [eax]
test cl, cl
jne 0x632285cd
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x632286da
test esi, esi
je 0x63228632
test dword [esi + 0x12a], 0x10000
jne 0x63228c2b
mov esi, dword [esp + 0x20]
test esi, esi
je 0x6322863f
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x1090]
lea esi, [ebp + 0x26]
push esi
push eax
call fcn.63227390
add esp, 8
lea ecx, [esp + 0x90]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x6322866a
test dword [ebp + 0x18], 0x10000
jne 0x63228c2b
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1090]
lea esi, [edx + 0x46]
push esi
push eax
call fcn.63227390
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 0x632286a8
lea edx, [esp + 0x1090]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x63228c2b
mov eax, dword [esp + 0x2c]
test byte [eax + 0x4ea6], 8
jne 0x63228c2b
mov edi, dword [esp + 0x3094]
mov ecx, dword [edi + 0x1c]
test ecx, ecx
jne 0x6322870d
mov ecx, dword [edi + 0x20]
test ecx, ecx
jne 0x6322870d
xor ebx, ebx
mov ebp, 1
jmp 0x6322886f
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x63228605
test esi, esi
je 0x632286fb
lea eax, [esi + 0x26]
push eax
push eax
call fcn.6322dd20
add esp, 8
jmp 0x63228605
lea eax, [ebp + 0x46]
push eax
push eax
call fcn.6322dd20
add esp, 8
jmp 0x6322863f
add eax, 0x4614
push eax
lea eax, [esp + 0x2894]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x63228752
test ebp, ebp
je 0x6322873a
lea ecx, [ebp + 0x26]
lea edx, [esp + 0x2890]
push ecx
push edx
jmp 0x63228762
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 0x6322876c
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 0x632287b0
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x632287a4
xor ebx, ebx
mov ebp, 1
jmp 0x6322886f
mov ebx, 1
xor ebp, ebp
jmp 0x6322886f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x2890]
push edx
call fcn.6322dbc0
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 0x6322882a
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 0x6322885b
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.6322da20
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], 0
test eax, eax
jle 0x63228c2b
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x28], eax
jmp 0x6322889d
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp edi, 1
je 0x63228c27
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x890]
mov edx, dword [ecx]
push edx
push eax
call fcn.6322f560
lea ecx, [esp + 0x898]
lea edx, [esp + 0x2098]
push ecx
push edx
call fcn.63227390
add esp, 0x10
lea eax, [esp + 0x2090]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea ecx, [esp + 0x890]
push 0x63257ee0
push ecx
call fcn.63231010
test eax, eax
jne 0x63228963
lea edx, [esp + 0x1090]
push edx
call esi
test eax, eax
jne 0x63228924
lea eax, [esp + 0x890]
push 0x63257ea0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x63228c07
jmp 0x63228c02
mov ecx, dword [esp + 0x3094]
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x6322894c
lea edx, [esp + 0x90]
push 0x63257ee0
push edx
call fcn.63231010
test eax, eax
jne 0x63228c07
lea eax, [esp + 0x890]
push 0
lea ecx, [esp + 0x1094]
push eax
push ecx
jmp 0x63228af0
lea edx, [esp + 0x890]
push 0x63257ee0
push edx
call fcn.63231010
test eax, eax
je 0x63228b0d
lea eax, [esp + 0x2090]
push eax
call esi
test eax, eax
je 0x63228b0d
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.632310a0
lea ecx, [esp + 0x90]
mov byte [eax + 1], 0
push ecx
call fcn.632310e0
add esp, 4
test eax, eax
je 0x63228a48
lea edx, [esp + 0x1890]
lea eax, [esp + 0x90]
push edx
push eax
call fcn.63231010
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x63228c07
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 0x63228c02
mov edx, dword [esp + 0x3094]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x63228c07
lea eax, [esp + 0x2090]
push 0x63257ea0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x63228c07
jmp 0x63228c02
lea ecx, [esp + 0x1890]
lea edx, [esp + 0x90]
push ecx
push edx
call fcn.63231010
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x63228c07
mov edx, dword [esp + 0x3094]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x63228a8e
lea eax, [esp + 0x2090]
push 0
lea ecx, [esp + 0x1094]
push eax
push ecx
jmp 0x63228af0
lea edx, [esp + 0x1890]
lea eax, [esp + 0x90]
push edx
push eax
call fcn.63231010
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x63228c07
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.632310a0
cmp esi, eax
jne 0x63228c07
lea ecx, [esp + 0x2090]
push 0
lea edx, [esp + 0x1094]
push ecx
push edx
call fcn.63227430
add esp, 0xc
test eax, eax
jne 0x63228c07
cmp ebx, ebp
jae 0x63228c07
jmp 0x63228c02
lea eax, [esp + 0x890]
push 0x63257ee0
push eax
call fcn.63231010
test eax, eax
je 0x63228c07
lea ecx, [esp + 0x2090]
push ecx
call esi
test eax, eax
jne 0x63228c07
lea edx, [esp + 0x90]
push edx
call fcn.632310e0
add esp, 4
test eax, eax
je 0x63228ba3
lea eax, [esp + 0x890]
lea ecx, [esp + 0x90]
push eax
push ecx
call fcn.63231010
lea edx, [esp + 0x90]
cmp eax, edx
jne 0x63228c07
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 0x63228c02
mov eax, dword [esp + 0x3094]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x63228c07
jmp 0x63228c02
lea ecx, [esp + 0x890]
lea edx, [esp + 0x90]
push ecx
push edx
call fcn.63231010
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x63228c07
mov edx, dword [esp + 0x3094]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x63228bd7
cmp ebx, ebp
jae 0x63228c07
jmp 0x63228c02
lea eax, [esp + 0x90]
push 0x63257ee0
push eax
call fcn.63231010
lea ecx, [esp + 0x90]
push 0x5c
push ecx
mov esi, eax
call fcn.632310a0
cmp esi, eax
jne 0x63228c07
cmp ebx, ebp
jae 0x63228c07
mov edi, 1
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edx
jl 0x63228897
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x6322858b
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 0x63228c5f
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 [esi + 0x28]
push edx
push 2
push 0x68
call fcn.63230f10
add esp, 8
push eax
push 0x2f
call fcn.63225f60
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3080
ret