Function at 0x47d800
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x3080
call fcn.005c0d00
mov eax, dword [0x6c24b8]
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 0x47d832
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 0x47e136
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
call edi
test eax, eax
je 0x47e136
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x8e]
test eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
jne 0x47d899
test ecx, ecx
je 0x47d89d
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 0x47d8aa
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x3080
ret
test ecx, ecx
je 0x47d86e
mov ecx, dword [esi + 0x28]
push ecx
push 2
push 0x6a
jmp 0x47e13e
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x47d8ce
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 0x47d9fe
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x47d910
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 0x47da43
mov ebp, 0x960
mov al, byte [edi]
mov ecx, dword [esp + 0x10]
cmp al, 0x22
jne 0x47d986
test ecx, ecx
je 0x47d96b
mov dword [esp + 0x10], 0
jmp 0x47d98a
mov dword [esp + 0x10], 1
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
cmp byte [edi], 0
jne 0x47d953
jmp 0x47da0e
test ecx, ecx
jne 0x47d973
cmp al, 0x20
jne 0x47d973
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 0x47d97c
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 0x47d9f3
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x47d9dc
jmp 0x47d97c
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 0x47da43
mov esi, dword [esp + 0x14]
test esi, esi
je 0x47da2c
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 0x47e13e
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x3094]
push edx
call fcn.0047d330
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x34], ebx
jne 0x47e0fb
mov esi, dword [esp + 0x20]
test esi, esi
je 0x47da7a
mov ebp, dword [esp + 0x18]
lea eax, [esi + 0x26]
jmp 0x47da81
mov ebp, dword [esp + 0x18]
lea eax, [ebp + 0x46]
mov cl, byte [eax]
test cl, cl
je 0x47da9e
mov edi, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x2f
jne 0x47da95
mov byte [eax], 0x5c
push eax
call edi
mov cl, byte [eax]
test cl, cl
jne 0x47da8d
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x47db9a
test esi, esi
je 0x47daf2
test dword [esi + 0x12a], 0x10000
jne 0x47e0eb
mov esi, dword [esp + 0x20]
test esi, esi
je 0x47daff
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x1090]
lea esi, [ebp + 0x26]
push esi
push eax
call fcn.0047c850
add esp, 8
lea ecx, [esp + 0x90]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x47db2a
test dword [ebp + 0x18], 0x10000
jne 0x47e0eb
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1090]
lea esi, [edx + 0x46]
push esi
push eax
call fcn.0047c850
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 0x47db68
lea edx, [esp + 0x1090]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x47e0eb
mov eax, dword [esp + 0x2c]
test byte [eax + 0x4ea6], 8
jne 0x47e0eb
mov edi, dword [esp + 0x3094]
mov ecx, dword [edi + 0x1c]
test ecx, ecx
jne 0x47dbcd
mov ecx, dword [edi + 0x20]
test ecx, ecx
jne 0x47dbcd
xor ebx, ebx
mov ebp, 1
jmp 0x47dd2f
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x47dac5
test esi, esi
je 0x47dbbb
lea eax, [esi + 0x26]
push eax
push eax
call fcn.004831e0
add esp, 8
jmp 0x47dac5
lea eax, [ebp + 0x46]
push eax
push eax
call fcn.004831e0
add esp, 8
jmp 0x47daff
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 0x47dc12
test ebp, ebp
je 0x47dbfa
lea ecx, [ebp + 0x26]
lea edx, [esp + 0x2890]
push ecx
push edx
jmp 0x47dc22
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 0x47dc2c
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 SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x47dc70
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x47dc64
xor ebx, ebx
mov ebp, 1
jmp 0x47dd2f
mov ebx, 1
xor ebp, ebp
jmp 0x47dd2f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x2890]
push edx
call fcn.00483080
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 0x47dcea
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 0x47dd1b
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.00482ee0
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], 0
test eax, eax
jle 0x47e0eb
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x28], eax
jmp 0x47dd5d
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp edi, 1
je 0x47e0e7
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x890]
mov edx, dword [ecx]
push edx
push eax
call fcn.00484a20
lea ecx, [esp + 0x898]
lea edx, [esp + 0x2098]
push ecx
push edx
call fcn.0047c850
add esp, 0x10
lea eax, [esp + 0x2090]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea ecx, [esp + 0x890]
push 0x683060
push ecx
call fcn.00486500
test eax, eax
jne 0x47de23
lea edx, [esp + 0x1090]
push edx
call esi
test eax, eax
jne 0x47dde4
lea eax, [esp + 0x890]
push 0x683020
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x47e0c7
jmp 0x47e0c2
mov ecx, dword [esp + 0x3094]
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x47de0c
lea edx, [esp + 0x90]
push 0x683060
push edx
call fcn.00486500
test eax, eax
jne 0x47e0c7
lea eax, [esp + 0x890]
push 0
lea ecx, [esp + 0x1094]
push eax
push ecx
jmp 0x47dfb0
lea edx, [esp + 0x890]
push 0x683060
push edx
call fcn.00486500
test eax, eax
je 0x47dfcd
lea eax, [esp + 0x2090]
push eax
call esi
test eax, eax
je 0x47dfcd
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.00486590
lea ecx, [esp + 0x90]
mov byte [eax + 1], 0
push ecx
call fcn.004865d0
add esp, 4
test eax, eax
je 0x47df08
lea edx, [esp + 0x1890]
lea eax, [esp + 0x90]
push edx
push eax
call fcn.00486500
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x47e0c7
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 0x47e0c2
mov edx, dword [esp + 0x3094]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x47e0c7
lea eax, [esp + 0x2090]
push 0x683020
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x47e0c7
jmp 0x47e0c2
lea ecx, [esp + 0x1890]
lea edx, [esp + 0x90]
push ecx
push edx
call fcn.00486500
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x47e0c7
mov edx, dword [esp + 0x3094]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x47df4e
lea eax, [esp + 0x2090]
push 0
lea ecx, [esp + 0x1094]
push eax
push ecx
jmp 0x47dfb0
lea edx, [esp + 0x1890]
lea eax, [esp + 0x90]
push edx
push eax
call fcn.00486500
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x47e0c7
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.00486590
cmp esi, eax
jne 0x47e0c7
lea ecx, [esp + 0x2090]
push 0
lea edx, [esp + 0x1094]
push ecx
push edx
call fcn.0047c8f0
add esp, 0xc
test eax, eax
jne 0x47e0c7
cmp ebx, ebp
jae 0x47e0c7
jmp 0x47e0c2
lea eax, [esp + 0x890]
push 0x683060
push eax
call fcn.00486500
test eax, eax
je 0x47e0c7
lea ecx, [esp + 0x2090]
push ecx
call esi
test eax, eax
jne 0x47e0c7
lea edx, [esp + 0x90]
push edx
call fcn.004865d0
add esp, 4
test eax, eax
je 0x47e063
lea eax, [esp + 0x890]
lea ecx, [esp + 0x90]
push eax
push ecx
call fcn.00486500
lea edx, [esp + 0x90]
cmp eax, edx
jne 0x47e0c7
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 0x47e0c2
mov eax, dword [esp + 0x3094]
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x47e0c7
jmp 0x47e0c2
lea ecx, [esp + 0x890]
lea edx, [esp + 0x90]
push ecx
push edx
call fcn.00486500
lea ecx, [esp + 0x90]
cmp eax, ecx
jne 0x47e0c7
mov edx, dword [esp + 0x3094]
mov eax, dword [edx + 0x34]
test eax, eax
je 0x47e097
cmp ebx, ebp
jae 0x47e0c7
jmp 0x47e0c2
lea eax, [esp + 0x90]
push 0x683060
push eax
call fcn.00486500
lea ecx, [esp + 0x90]
push 0x5c
push ecx
mov esi, eax
call fcn.00486590
cmp esi, eax
jne 0x47e0c7
cmp ebx, ebp
jae 0x47e0c7
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 0x47dd57
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47da4b
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 0x47e11f
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.00486400
add esp, 8
push eax
push 0x2f
call fcn.0047b420
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3080
ret