Function at 0x4a7430
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
sub esp, 0x418
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4a7458
pop edi
mov eax, 5
pop esi
add esp, 0x418
ret
mov dword [esp + 0x18], 7
mov eax, dword [edi + 0xab2]
mov ecx, 0x30d40
cmp ecx, eax
sbb edx, edx
neg edx
add edx, 7
mov dword [esp + 0x14], edx
mov al, byte [edi + 0xafc]
test al, 4
mov dword [edi + 0x908a], 0
je 0x4a769b
lea eax, [esp + 0x20]
push pe_nt_image_headers32
push eax
mov dword [esp + 0x24], 9
call fcn.004a5d40
add esp, 8
test eax, eax
jne 0x4a77fe
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
push eax
push pe_nt_image_headers32
lea eax, [esp + 0x34]
push pe_nt_image_headers32
push eax
call fcn.004a4aa0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4a74fc
cmp esi, 1
jne 0x4a77fc
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004a4f90
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret
lea edx, [esp + 0x20]
push 0x40
push edx
call fcn.004a5d40
mov esi, eax
add esp, 8
test esi, esi
je 0x4a7529
mov eax, dword [esp + 0x10]
push eax
call fcn.004a4f90
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret
lea ecx, [esp + 0x18]
lea edx, [esp + 8]
push ecx
push edx
push 0x51e4e8
push 0x51e468
push 0
lea eax, [esp + 0x34]
push 0x40
push eax
call fcn.004a4aa0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4a757e
cmp esi, 1
jne 0x4a7566
mov ecx, dword [esp + 8]
push ecx
call fcn.004a4f90
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call fcn.004a4f90
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret
lea eax, [esp + 0x20]
push 0x40
push eax
call fcn.004a5d40
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a7625
mov al, byte [edi + 0xafc]
lea ecx, [esp + 0xc]
test al, 2
lea eax, [esp + 0x14]
push eax
push ecx
push 0x51e4e8
je 0x4a75f7
push 0x51e5e8
push esi
lea edx, [esp + 0x34]
push 0x40
push edx
call fcn.004a4aa0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4a75d2
cmp esi, 1
jne 0x4a7625
jmp 0x4a7618
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
call fcn.004a5df0
jmp 0x4a766a
push 0x51e568
push 0
lea edx, [esp + 0x34]
push 0x40
push edx
call fcn.004a4aa0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4a7647
cmp esi, 1
jne 0x4a7625
mov eax, dword [esp + 0xc]
push eax
call fcn.004a4f90
add esp, 4
mov ecx, dword [esp + 8]
push ecx
call fcn.004a4f90
mov edx, dword [esp + 0x14]
push edx
call fcn.004a4f90
add esp, 8
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
call fcn.004a63a0
add esp, 0x18
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call fcn.004a4f90
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004a4f90
mov edx, dword [esp + 0x18]
push edx
call fcn.004a4f90
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret
lea eax, [esp + 0x20]
push 0x40
push eax
call fcn.004a5d40
add esp, 8
test eax, eax
jne 0x4a77fe
lea ecx, [esp + 0x18]
lea edx, [esp + 8]
push ecx
push edx
push 0x51e4e8
push 0x51e3e8
push eax
lea eax, [esp + 0x34]
push 0x40
push eax
call fcn.004a4aa0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4a76fd
cmp esi, 1
jne 0x4a77fc
mov ecx, dword [esp + 8]
push ecx
call fcn.004a4f90
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret
lea edx, [esp + 0x20]
push 0x40
push edx
call fcn.004a5d40
mov esi, eax
add esp, 8
test esi, esi
je 0x4a772a
mov eax, dword [esp + 8]
push eax
call fcn.004a4f90
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret
mov al, byte [edi + 0xafc]
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
test al, 2
push edx
push 0x51e4e8
je 0x4a7781
push 0x51e5e8
push 0
lea eax, [esp + 0x34]
push 0x40
push eax
call fcn.004a4aa0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4a7766
cmp esi, 1
jne 0x4a77af
jmp 0x4a77a2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call fcn.004a6950
jmp 0x4a77e0
push 0x51e568
push 0
lea eax, [esp + 0x34]
push 0x40
push eax
call fcn.004a4aa0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4a77c7
cmp esi, 1
jne 0x4a77af
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004a4f90
add esp, 4
mov edx, dword [esp + 8]
push edx
call fcn.004a4f90
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call fcn.004a6ec0
mov ecx, dword [esp + 0x1c]
add esp, 0x10
mov esi, eax
push ecx
call fcn.004a4f90
mov edx, dword [esp + 0xc]
push edx
call fcn.004a4f90
add esp, 8
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret