Function at 0x4f6da0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov dword [ebp - 0x44], 0x56
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x2c], 0x51
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x24], 6
mov dword [ebp - 8], 0x18
mov dword [ebp - 0x1c], 0x28
mov dword [ebp - 0x5c], 0xe
mov dword [ebp - 4], 0x32
mov dword [ebp - 0x18], 0x59
mov dword [ebp - 0xc], 0x25
mov dword [ebp - 0x4c], 0x2a
mov dword [ebp - 0xc8], 0x3b
mov dword [ebp - 0xf8], 0x57
mov dword [ebp - 0x9c], 0xc
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x10], 0x26
mov dword [ebp - 0x40], 0x59
mov dword [ebp - 0x30], 0x62
mov dword [ebp - 0x28], 0x2e
mov dword [ebp - 0x48], 0x45
mov dword [ebp - 0x68], 0x1b
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x64], 0xb
mov dword [ebp - 0x34], 0x57
mov dword [ebp - 0x50], 0
jmp 0x4f6e73
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [0x5962fc]
sub ecx, 4
cmp dword [ebp - 0x50], ecx
jge 0x4f6f3e
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0xe8], edx
mov eax, dword [0x596308]
mov dword [ebp - 0xec], eax
mov ecx, dword [0x596308]
add ecx, 1
mov dword [0x596308], ecx
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0xe8]
cmp eax, dword [ebp - 0xec]
jge 0x4f6ecb
mov dword [ebp - 0x84], 1
jmp 0x4f6ed5
mov dword [ebp - 0x84], 0
mov ecx, dword [0x596338]
mov dword [ebp - 0xf0], ecx
mov edx, dword [0x59629c]
mov dword [ebp - 0xf4], edx
mov eax, dword [0x59629c]
add eax, 1
mov dword [0x59629c], eax
mov ecx, dword [ebp - 0xf0]
cmp ecx, dword [ebp - 0xf4]
jge 0x4f6f14
mov dword [ebp - 0x88], 1
jmp 0x4f6f1e
mov dword [ebp - 0x88], 0
mov edx, dword [ebp - 0x84]
and edx, dword [ebp - 0x88]
je 0x4f6f39
mov eax, dword [0x5962f8]
sub eax, 1
mov dword [0x5962f8], eax
jmp 0x4f6e6a
mov ecx, dword [ebp - 0x24]
add ecx, 0x59
push ecx
mov edx, dword [ebp - 0x48]
sub edx, 0x3d
push edx
mov eax, dword [ebp - 0x10]
add eax, 7
push eax
mov ecx, dword [ebp - 0x5c]
add ecx, 0x37
push ecx
mov edx, dword [0x5962fc]
add edx, 0xa
push edx
mov eax, dword [0x5962fc]
add eax, 0x44
push eax
call fcn.0041aef0
add esp, 0x18
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [0x5962f8]
sub edx, 0x24
push edx
mov eax, dword [ebp - 0x68]
add eax, 0x1a
push eax
mov ecx, dword [0x59629c]
add ecx, 0x2f
push ecx
mov edx, dword [0x596308]
add edx, 0x3e
push edx
mov eax, dword [0x596360]
sub eax, 1
push eax
mov ecx, dword [0x5962c4]
sub ecx, 0x1c
push ecx
mov edx, dword [ebp - 0xc]
sub edx, 6
push edx
mov eax, dword [ebp - 0x24]
add eax, 0x26
push eax
call fcn.00414a80
add esp, 0x20
mov ecx, dword [0x59633c]
push ecx
mov edx, dword [ebp - 0x4c]
sub edx, 0xc
push edx
mov eax, dword [ebp - 0xc]
add eax, 0x12
push eax
call fcn.00416650
add esp, 0xc
mov ecx, 0x4018
sub ecx, dword [ebp + 0x24]
and ecx, 0x1c2e
xor ecx, 0x6e615c63
mov edx, dword [ebp + 0x18]
add edx, 0x8b5
xor edx, 0x1f87
mov dword [edx + str.SdfHwCAPargBreMqBzf], ecx
mov dword [ebp - 0x54], 0
jmp 0x4f7024
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x48]
sub ecx, 0x186e5
cmp dword [ebp - 0x54], ecx
jge 0x4f7073
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
push 0x7b8a
push 0x7152
push 0x8516
push 0x94d6
push 0x2b0f
push 0x12f69
push 0x182f7
push 0xf93f
push 0x3414
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
add esp, 0x24
jmp 0x4f701b
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [0x59629c]
jge 0x4f7096
mov edx, dword [0x5962fc]
add edx, 1
mov dword [0x5962fc], edx
mov dword [ebp - 0x58], 0
jmp 0x4f70a8
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x28]
sub ecx, 0x186ce
cmp dword [ebp - 0x58], ecx
jge 0x4f713c
mov edx, dword [0x59633c]
sub edx, dword [ebp - 0x18]
je 0x4f7137
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0xc8]
jge 0x4f70df
mov dword [ebp - 0x8c], 1
jmp 0x4f70e9
mov dword [ebp - 0x8c], 0
mov ecx, dword [ebp - 0x44]
or ecx, dword [0x5962c4]
cmp ecx, dword [ebp - 0x1c]
jge 0x4f7103
mov dword [ebp - 0x90], 1
jmp 0x4f710d
mov dword [ebp - 0x90], 0
mov edx, dword [ebp - 0x8c]
or edx, dword [ebp - 0x90]
je 0x4f7137
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
push 0x15a72
push 0x179f0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add esp, 8
jmp 0x4f709f
mov ecx, dword [0x59629c]
sub ecx, 1
mov dword [0x59629c], ecx
mov edx, dword [ebp + 8]
add edx, 0x3788
xor edx, 0x746445fe
mov eax, dword [ebp + 8]
xor eax, 0xf63d
xor eax, 0x821d
xor eax, 0x8020
mov dword [eax + str.SdfHwCAPargBreMqBzf], edx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x28]
jge 0x4f7186
mov dword [ebp - 0x94], 1
jmp 0x4f7190
mov dword [ebp - 0x94], 0
mov edx, dword [0x596304]
sub edx, 1
mov dword [0x596304], edx
mov eax, dword [0x596304]
and eax, dword [ebp - 0x40]
and eax, dword [0x596308]
or eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x94]
je 0x4f71c1
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x64]
jge 0x4f7419
mov eax, dword [ebp - 0x1c]
xor eax, dword [0x5962c8]
cmp eax, dword [0x596298]
jge 0x4f71ea
mov dword [ebp - 0x98], 1
jmp 0x4f71f4
mov dword [ebp - 0x98], 0
mov ecx, dword [ebp - 0x9c]
and ecx, dword [ebp - 0x3c]
and ecx, dword [ebp - 0x98]
je 0x4f7419
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x4c]
jge 0x4f7419
mov eax, dword [0x596300]
cmp eax, dword [ebp - 0xf8]
jge 0x4f722e
mov dword [ebp - 0xa8], 1
jmp 0x4f7238
mov dword [ebp - 0xa8], 0
mov ecx, dword [ebp - 0x68]
xor ecx, dword [ebp - 0x9c]
cmp ecx, dword [ebp - 0x3c]
jge 0x4f7252
mov dword [ebp - 0xa0], 1
jmp 0x4f725c
mov dword [ebp - 0xa0], 0
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0x2c]
jge 0x4f7270
mov dword [ebp - 0xa4], 1
jmp 0x4f727a
mov dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa0]
and eax, dword [ebp - 0xa4]
or eax, dword [ebp - 0xa8]
je 0x4f7419
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x34]
jge 0x4f72a6
mov dword [ebp - 0xac], 1
jmp 0x4f72b0
mov dword [ebp - 0xac], 0
mov edx, dword [ebp - 4]
imul edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x64]
jge 0x4f72c8
mov dword [ebp - 0xb0], 1
jmp 0x4f72d2
mov dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0xac]
and eax, dword [ebp - 0xb0]
and eax, dword [0x5962f8]
and eax, dword [ebp - 0x14]
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0xfc], 0
je 0x4f7419
mov edx, dword [ebp - 0x34]
imul edx, dword [0x5962c4]
cmp edx, dword [ebp - 4]
jge 0x4f731e
mov dword [ebp - 0xb4], 1
jmp 0x4f7328
mov dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x4c]
jge 0x4f733c
mov dword [ebp - 0xb8], 1
jmp 0x4f7346
mov dword [ebp - 0xb8], 0
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
and edx, dword [ebp - 8]
mov eax, dword [ebp - 0xb4]
and eax, dword [ebp - 0xb8]
or eax, edx
je 0x4f7419
mov ecx, dword [ebp - 0x44]
xor ecx, dword [0x59629c]
cmp ecx, dword [ebp - 0x10]
jge 0x4f7383
mov dword [ebp - 0xbc], 1
jmp 0x4f738d
mov dword [ebp - 0xbc], 0
mov edx, dword [0x596360]
cmp edx, dword [ebp - 0x24]
jge 0x4f73a4
mov dword [ebp - 0xc0], 1
jmp 0x4f73ae
mov dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0xbc]
and eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0x48]
add ecx, dword [ebp - 0x2c]
and eax, ecx
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x100], 0
je 0x4f7419
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x28]
imul ecx, dword [0x596338]
mov edx, dword [ebp - 0x5c]
and edx, dword [ebp - 8]
and edx, ecx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x34]
or eax, edx
je 0x4f7419
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [0x5962fc]
jge 0x4f7419
mov edx, dword [0x596360]
add edx, 1
mov dword [0x596360], edx
mov eax, dword [ebp + 8]
or eax, 0x1e77
xor eax, 0xadff
xor eax, 0x53e4
mov ecx, dword [ebp + 0x28]
add ecx, 0xddf9
xor ecx, 0x130bb
mov byte [ecx + str.SdfHwCAPargBreMqBzf], al
mov dword [ebp - 0x60], 0
jmp 0x4f7452
mov edx, dword [ebp - 0x60]
add edx, 1
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x38]
sub eax, 0xc
cmp dword [ebp - 0x60], eax
jge 0x4f750a
mov ecx, dword [ebp - 8]
add ecx, dword [0x596308]
cmp ecx, dword [0x596304]
jge 0x4f747e
mov dword [ebp - 0xc4], 1
jmp 0x4f7488
mov dword [ebp - 0xc4], 0
mov edx, dword [0x5962c4]
and edx, dword [0x5962f8]
and edx, dword [ebp - 0x24]
and edx, dword [ebp - 0xc4]
xor edx, dword [ebp - 0x20]
je 0x4f7505
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jge 0x4f74b6
mov dword [ebp - 0xd0], 1
jmp 0x4f74c0
mov dword [ebp - 0xd0], 0
mov ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
jge 0x4f74d7
mov dword [ebp - 0xcc], 1
jmp 0x4f74e1
mov dword [ebp - 0xcc], 0
mov edx, dword [ebp - 0xc8]
sub edx, dword [ebp - 4]
and edx, dword [ebp - 0xcc]
or edx, dword [ebp - 0xd0]
je 0x4f7505
mov eax, dword [0x5962c8]
sub eax, 1
mov dword [0x5962c8], eax
jmp 0x4f7449
mov ecx, 0xd6bd
sub ecx, dword [ebp + 0x2c]
xor ecx, 0x2be1
mov edx, dword [ebp + 0xc]
and edx, 0xdea7
xor edx, 0x493
mov byte [edx + str.SdfHwCAPargBreMqBzf], cl
mov eax, dword [0x5962c4]
sub eax, 0x10
push eax
mov ecx, dword [0x5962f8]
add ecx, 0x10
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 0xb
push edx
mov eax, dword [0x596304]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 3
push ecx
mov edx, dword [0x59629c]
add edx, 0x42
push edx
mov eax, dword [0x5962f8]
sub eax, 0x32
push eax
mov ecx, dword [0x596304]
add ecx, 0x24
push ecx
mov edx, dword [ebp - 0x3c]
add edx, 0x24
push edx
call fcn.004076f0
add esp, 0x24
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 4]
jge 0x4f7640
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x68]
jge 0x4f75a3
mov dword [ebp - 0xd4], 1
jmp 0x4f75ad
mov dword [ebp - 0xd4], 0
mov edx, dword [ebp - 0x40]
sub edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
cmp eax, dword [0x596308]
jge 0x4f75cd
mov dword [ebp - 0xd8], 1
jmp 0x4f75d7
mov dword [ebp - 0xd8], 0
mov ecx, dword [ebp - 0xd4]
or ecx, dword [ebp - 0xd8]
je 0x4f7640
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x14]
jge 0x4f75f9
mov dword [ebp - 0xdc], 1
jmp 0x4f7603
mov dword [ebp - 0xdc], 0
mov eax, dword [0x5962fc]
cmp eax, dword [ebp - 0x1c]
jge 0x4f7619
mov dword [ebp - 0xe0], 1
jmp 0x4f7623
mov dword [ebp - 0xe0], 0
mov ecx, dword [ebp - 0xdc]
and ecx, dword [ebp - 0xe0]
je 0x4f7640
mov edx, dword [0x596300]
add edx, 1
mov dword [0x596300], edx
mov dword [ebp - 0x6c], 0
jmp 0x4f7652
mov eax, dword [ebp - 0x6c]
add eax, 1
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x44]
sub ecx, 0x55
cmp dword [ebp - 0x6c], ecx
jge 0x4f766e
mov edx, dword [0x596304]
sub edx, 1
mov dword [0x596304], edx
jmp 0x4f7649
mov dword [ebp - 0x70], 0
jmp 0x4f7680
mov eax, dword [ebp - 0x70]
add eax, 1
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 4]
sub ecx, 0x32
cmp dword [ebp - 0x70], ecx
jge 0x4f769c
mov edx, dword [0x596308]
sub edx, 1
mov dword [0x596308], edx
jmp 0x4f7677
mov dword [ebp - 0x74], 0
jmp 0x4f76ae
mov eax, dword [ebp - 0x74]
add eax, 1
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x38]
sub ecx, 0x186ad
cmp dword [ebp - 0x74], ecx
jge 0x4f76da
push 0xf9a6
push 0x635d
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
add esp, 8
mov edx, dword [ebp - 0x20]
sub edx, 1
mov dword [ebp - 0x20], edx
jmp 0x4f76a5
mov eax, dword [ebp + 0x14]
or eax, 0x8a22
xor eax, 0x6574d5fe
mov ecx, 0x2e08
sub ecx, dword [ebp + 0x18]
and ecx, 0xc57e
xor ecx, 0x532
mov dword [ecx + str.SdfHwCAPargBreMqBzf], eax
mov dword [ebp - 0x78], 0
jmp 0x4f7713
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x3c]
sub eax, 3
cmp dword [ebp - 0x78], eax
jge 0x4f7729
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x4f770a
mov edx, dword [ebp + 0x20]
xor edx, 0x4e08
add edx, 0x79f6
xor edx, 0x736fe495
mov eax, dword [ebp + 0x28]
xor eax, 0x4d6c
sub eax, 0x12002
xor eax, 0xfffeffd3
mov dword [eax + str.SdfHwCAPargBreMqBzf], edx
mov dword [ebp - 0x7c], 0
jmp 0x4f7768
mov ecx, dword [ebp - 0x7c]
add ecx, 1
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x20]
sub edx, 0x186b2
cmp dword [ebp - 0x7c], edx
jge 0x4f77ac
push 0xb6fd
push 0x4d57
push 0x3e52
push 0x280b
push 0x12357
push 0x29ce
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x18
mov eax, dword [0x5962c4]
sub eax, 1
mov dword [0x5962c4], eax
jmp 0x4f775f
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x40]
jge 0x4f77cb
mov edx, dword [ebp - 0x24]
sub edx, dword [0x5962fc]
cmp edx, dword [ebp - 0x44]
jge 0x4f77cb
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [0x5962fc]
sub edx, 1
mov dword [0x5962fc], edx
mov eax, dword [0x59633c]
sub eax, 1
mov dword [0x59633c], eax
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [0x596300]
jge 0x4f7807
mov dword [ebp - 0xe4], 1
jmp 0x4f7811
mov dword [ebp - 0xe4], 0
mov edx, dword [0x5962f8]
sub edx, dword [ebp - 0xc]
and edx, dword [ebp - 0xe4]
or edx, dword [ebp - 0x4c]
je 0x4f782e
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x24]
xor ecx, 0xdeee
xor ecx, 0x34b3
xor ecx, 0xc339
mov edx, 0x10de2
sub edx, dword [ebp + 0x2c]
xor edx, 0x62b8
mov byte [edx + str.SdfHwCAPargBreMqBzf], cl
mov eax, dword [ebp - 0x34]
sub eax, 0x1b
push eax
mov ecx, dword [ebp - 0x28]
sub ecx, 0x20
push ecx
mov edx, dword [0x596308]
add edx, 0x45
push edx
mov eax, dword [0x5962c8]
add eax, 0x3a
push eax
mov ecx, dword [ebp - 0x2c]
sub ecx, 0x18
push ecx
mov edx, dword [0x596338]
sub edx, 0xb
push edx
mov eax, dword [ebp - 8]
add eax, 0x30
push eax
call fcn.0041a730
add esp, 0x1c
mov eax, str.SdfHwCAPargBreMqBzf
jmp 0x4f790b
mov esp, ebp
pop ebp
ret