Function at 0x4730c9
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3f4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea esi, [ecx + 4]
mov dword [esp + 0x24], edx
lea eax, [ecx + 8]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
test edi, edi
je 0x473126
mov edx, edi
lea ecx, [esp + 0x130]
call fcn.00462f5e
mov eax, dword [edi + 8]
mov ecx, esi
mov ebx, dword [edi]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
push ebx
mov dword [esp + 0x20], eax
call fcn.00463095
and dword [esp + 0x14], 0
pop ecx
jmp 0x4731ba
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov eax, dword [esp + 0x1e8]
mov ebx, dword [esp + 0x1f4]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1e4]
mov dword [esp + 0x1c], eax
mov eax, dword [0x80bc90]
not eax
push eax
call esi
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [0x80b79c]
not eax
push eax
call esi
mov esi, dword [esp + 0x10]
mov edx, eax
mov eax, dword [esp + 0x14]
mov dword [eax], edx
cmp ebx, dword [esi]
ja 0x47318c
xor ecx, ecx
inc ecx
mov dword [esp + 0x10], ecx
cmp ebx, edx
jae 0x4731e5
push ebx
mov edx, eax
mov ecx, esi
call fcn.00463095
mov edx, dword [esi]
pop ecx
mov ecx, 0x80bc90
call fcn.0046b57d
mov edx, dword [esp + 0x14]
mov ecx, 0x80b79c
mov edx, dword [edx]
call fcn.0046b57d
xor ecx, ecx
inc ecx
mov dword [esp + 0x10], ecx
test edi, edi
je 0x4731e5
cmp dword [edi + 0xc10], 0
je 0x4731e5
mov esi, dword [edi + 0xc10]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
je 0x4731e5
push esi
xor esi, esi
push esi
push 0x48
call dword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x4731ed
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor esi, esi
push 0x108
mov dword [esp + 0x24], eax
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.005530b0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
add edi, 8
mov eax, dword [esp + 0x1c]
push 3
pop ecx
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x14], esi
lea eax, [esp + 0x130]
mov ecx, ebx
push eax
lea edx, [esp + 0x2c]
call fcn.00462a5f
mov edx, dword [esp + 0x14]
pop ecx
mov ecx, dword [esp + 0x28]
test esi, esi
jne 0x473274
cmp ecx, dword [esp + 0x18]
jne 0x473274
cmp dword [esp + 0x2c], 0
jne 0x473274
inc edx
mov dword [esp + 0x10], edx
test al, al
je 0x4732e3
mov dword [esp + 0x18], ecx
call fcn.00462acb
test al, al
jne 0x4732e3
cmp esi, edx
jb 0x4732d6
mov eax, dword [esp + 0x48]
mov dword [edi - 4], eax
mov eax, dword [esp + 0x58]
mov dword [edi], eax
mov eax, dword [esp + 0x80]
mov dword [edi - 8], ecx
mov byte [edi + 4], 1
mov dword [edi + 8], eax
mov eax, dword [esp + 0x88]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x90]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x98]
mov dword [edi + 0x14], eax
add edi, 0x20
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [ebp + 8]
je 0x4732e3
inc esi
cmp esi, 0x100
jb 0x473242
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret