Function at 0x463910
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x3080
call fcn.004ad6f0
mov eax, dword [0x5296dc]
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 0x463942
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 0x464246
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
call edi
test eax, eax
je 0x464246
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x8e]
test eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
jne 0x4639a9
test ecx, ecx
je 0x4639ad
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 0x4639ba
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x3080
ret
test ecx, ecx
je 0x46397e
mov ecx, dword [esi + 0x28]
push ecx
push 2
push 0x6a
jmp 0x46424e
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x4639de
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 0x463b0e
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x463a20
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 0x463b53
mov ebp, 0x960
mov al, byte [edi]
mov ecx, dword [esp + 0x10]
cmp al, 0x22
jne 0x463a96
test ecx, ecx
je 0x463a7b
mov dword [esp + 0x10], 0
jmp 0x463a9a
mov dword [esp + 0x10], 1
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
cmp byte [edi], 0
jne 0x463a63
jmp 0x463b1e
test ecx, ecx
jne 0x463a83
cmp al, 0x20
jne 0x463a83
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 0x463a8c
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 0x463b03
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x463aec
jmp 0x463a8c
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 0x463b53
mov esi, dword [esp + 0x14]
test esi, esi
je 0x463b3c
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 0x46424e
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x3094]
push edx
call fcn.00463440
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x34], ebx
jne 0x46420b
mov esi, dword [esp + 0x20]
test esi, esi
je 0x463b8a
mov ebp, dword [esp + 0x18]
lea eax, [esi + 0x26]
jmp 0x463b91
mov ebp, dword [esp + 0x18]
lea eax, [ebp + 0x46]
mov cl, byte [eax]
test cl, cl
je 0x463bae
mov edi, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x2f
jne 0x463ba5
mov byte [eax], 0x5c
push eax
call edi
mov cl, byte [eax]
test cl, cl
jne 0x463b9d
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x463caa
test esi, esi
je 0x463c02
test dword [esi + 0x12a], 0x10000
jne 0x4641fb
mov esi, dword [esp + 0x20]
test esi, esi
je 0x463c0f
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x1090]
lea esi, [ebp + 0x26]
push esi
push eax
call fcn.004628c0
add esp, 8
lea ecx, [esp + 0x90]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x463c3a
test dword [ebp + 0x18], 0x10000
jne 0x4641fb
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1090]
lea esi, [edx + 0x46]
push esi
push eax
call fcn.004628c0
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 0x463c78
lea edx, [esp + 0x1090]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4641fb
mov eax, dword [esp + 0x2c]
test byte [eax + 0x4ea6], 8
jne 0x4641fb
mov edi, dword [esp + 0x3094]
mov ecx, dword [edi + 0x1c]
test ecx, ecx
jne 0x463cdd
mov ecx, dword [edi + 0x20]
test ecx, ecx
jne 0x463cdd
xor ebx, ebx
mov ebp, 1
jmp 0x463e3f
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x463bd5
test esi, esi
je 0x463ccb
lea eax, [esi + 0x26]
push eax
push eax
call fcn.00469c90
add esp, 8
jmp 0x463bd5
lea eax, [ebp + 0x46]
push eax
push eax
call fcn.00469c90
add esp, 8
jmp 0x463c0f
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 0x463d22
test ebp, ebp
je 0x463d0a
lea ecx, [ebp + 0x26]
lea edx, [esp + 0x2890]
push ecx
push edx
jmp 0x463d32
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 0x463d3c
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 SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x463d80
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x463d74
xor ebx, ebx
mov ebp, 1
jmp 0x463e3f
mov ebx, 1
xor ebp, ebp
jmp 0x463e3f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x2890]
push edx
call fcn.00469b30
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 0x463dfa
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 0x463e2b
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.00469990
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], 0
test eax, eax
jle 0x4641fb
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x28], eax
jmp 0x463e6d
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp edi, 1
je 0x4641f7
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x890]
mov edx, dword [ecx]
push edx
push eax
call fcn.0046b610
lea ecx, [esp + 0x898]
lea edx, [esp + 0x2098]
push ecx
push edx
call fcn.004628c0
add esp, 0x10
lea eax, [esp + 0x2090]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea ecx, [esp + 0x890]
push 0x51cdf4
push ecx
call fcn.0046d0f0
test eax, eax
jne 0x463f33
lea edx, [esp + 0x1090]
push edx
call esi
test eax, eax
jne 0x463ef4
lea eax, [esp + 0x890]
push 0x51cdb4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4641d7
jmp 0x4641d2
mov ecx, dword [esp + 0x3094]
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x463f1c
lea edx, [esp + 0x90]
push 0x51cdf4
push edx
call fcn.0046d0f0
test eax, eax
jne 0x4641d7
lea eax, [esp + 0x890]
push 0
lea ecx, [esp + 0x1094]
push eax
push ecx
jmp 0x4640c0
lea edx, [esp + 0x890]
push 0x51cdf4
push edx
call fcn.0046d0f0
test eax, eax
je 0x4640dd
lea eax, [esp + 0x2090]
push eax
call esi
test eax, eax
je 0x4640dd
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.0046d180
lea ecx, [esp + 0x90]
mov byte [eax + 1], 0
push ecx
call fcn.0046d230
add esp, 4
test eax, eax
je 0x464018
lea edx, [esp + 0x1890]
lea eax, [esp + 0x90]
push edx
push eax
call fcn.0046d0f0
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x4641d7
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 0x4641d2
mov edx, dword [esp + 0x3094]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x4641d7
lea eax, [esp + 0x2090]
push 0x51cdb4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4641d7
jmp 0x4641d2
lea ecx, [esp + 0x1890]
lea edx, [esp + 0x90]
push ecx
push edx
call fcn.0046d0f0
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x4641d7
mov edx, dword [esp + 0x3094]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x46405e
lea eax, [esp + 0x2090]
push 0
lea ecx, [esp + 0x1094]
push eax
push ecx
jmp 0x4640c0
lea edx, [esp + 0x1890]
lea eax, [esp + 0x90]
push edx
push eax
call fcn.0046d0f0
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x4641d7
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.0046d180
cmp esi, eax
jne 0x4641d7
lea ecx, [esp + 0x2090]
push 0
lea edx, [esp + 0x1094]
push ecx
push edx
call fcn.00462a00
add esp, 0xc
test eax, eax
jne 0x4641d7
cmp ebx, ebp
jae 0x4641d7
jmp 0x4641d2
lea eax, [esp + 0x890]
push 0x51cdf4
push eax
call fcn.0046d0f0
test eax, eax
je 0x4641d7
lea ecx, [esp + 0x2090]
push ecx
call esi
test eax, eax
jne 0x4641d7
lea edx, [esp + 0x90]
push edx
call fcn.0046d230
add esp, 4
test eax, eax
je 0x464173
lea eax, [esp + 0x890]
lea ecx, [esp + 0x90]
push eax
push ecx
call fcn.0046d0f0
lea edx, [esp + 0x90]
cmp eax, edx
jne 0x4641d7
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 0x4641d2
mov eax, dword [esp + 0x3094]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x4641d7
jmp 0x4641d2
lea ecx, [esp + 0x890]
lea edx, [esp + 0x90]
push ecx
push edx
call fcn.0046d0f0
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x4641d7
mov edx, dword [esp + 0x3094]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x4641a7
cmp ebx, ebp
jae 0x4641d7
jmp 0x4641d2
lea eax, [esp + 0x90]
push 0x51cdf4
push eax
call fcn.0046d0f0
lea ecx, [esp + 0x90]
push 0x5c
push ecx
mov esi, eax
call fcn.0046d180
cmp esi, eax
jne 0x4641d7
cmp ebx, ebp
jae 0x4641d7
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 0x463e67
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x463b5b
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 0x46422f
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.0046cff0
add esp, 8
push eax
push 0x2f
call fcn.00461490
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3080
ret