Function at 0x479110
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, edx
mov dword [eax], 0
mov esi, edi
mov dword [eax + 4], 0
mov ebx, ecx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x479132
sub esi, ecx
inc esi
mov ecx, esi
call fcn.00479b80
mov dword [ebp - 0x14], eax
test eax, eax
je 0x479567
push esi
push edi
push eax
call fcn.004bef20
mov esi, dword [ebp - 0x14]
add esp, 0xc
push 0x529dfc
push esi
call fcn.004bf17b
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x4791cd
push esi
call fcn.004bae83
mov edx, dword [ebp + 8]
add esp, 4
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebx + 0x1c]
mov dword [edx + 4], eax
test ecx, ecx
je 0x4791c4
mov eax, dword [ebx + 0x18]
mov dword [ecx + 0x18], eax
mov eax, dword [ebx + 0x1c]
mov dword [ecx + 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 0x34], 3
mov dword [ecx + 0x38], 1
test eax, eax
je 0x4791ba
mov byte [eax], 0
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4791c4
mov byte [eax], 0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebx + 0x68], 1
je 0x4791ef
push 0x3a
push eax
call fcn.004bf050
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4791ec
mov byte [eax], 0
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
cmp dword [0x561618], 0
je 0x47920f
push eax
push str.Looking_for__s_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
add esp, 0xc
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
mov byte [ebp - 1], 0
nop
push eax
xor edi, edi
mov dword [ebp - 0x1c], 0
push esi
mov ecx, ebx
mov dword [ebp - 0x10], edi
call fcn.00477be0
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x47955c
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 8]
cmp dword [ecx + 0x10], 2
jne 0x479503
xor esi, esi
mov ecx, eax
mov dword [ebp - 0x28], esi
call fcn.00477e70
test eax, eax
je 0x479462
jmp 0x479270
mov ecx, dword [ebp - 0x18]
mov edx, esi
call fcn.00477ee0
mov esi, eax
test esi, esi
je 0x4794d3
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x4792a2
push dword [ebp - 8]
push eax
mov eax, dword [ebx + 0x104]
push ebx
call eax
add esp, 0xc
test eax, eax
je 0x4792c4
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x47933c
push dword [ebp - 8]
push eax
mov eax, dword [ebx + 0x104]
push ebx
call eax
add esp, 0xc
test eax, eax
jne 0x47933c
test byte [ebx + 0x68], 1
je 0x479431
cmp dword [ebp - 0xc], 0
je 0x479431
cmp dword [esi + 8], 0
je 0x47933c
mov ecx, esi
call fcn.00479780
xor edi, edi
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x479339
mov edi, edi
mov edx, str.tsk_fs_file_attr_get_idx
mov ecx, esi
call fcn.00479690
test eax, eax
jne 0x479333
mov ecx, dword [esi + 8]
mov edx, edi
mov ecx, dword [ecx + 0xc8]
call fcn.004801b0
test eax, eax
je 0x479333
mov eax, dword [eax + 0xc]
test eax, eax
je 0x479333
push dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 0x104]
push ebx
call eax
add esp, 0xc
test eax, eax
je 0x47942e
inc edi
cmp edi, dword [ebp - 0x2c]
jl 0x4792f0
mov edi, dword [ebp - 0x10]
cmp dword [esi], 0x11212212
jne 0x479379
mov ecx, dword [esi + 8]
mov dword [esi], 0
test ecx, ecx
je 0x47935d
call fcn.0047fa70
mov dword [esi + 8], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x479370
call fcn.00480420
mov dword [esi + 4], 0
push esi
call fcn.004bae83
add esp, 4
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
inc esi
mov dword [ebp - 0x28], esi
call fcn.00477e70
cmp esi, eax
jb 0x479270
test edi, edi
je 0x479462
mov esi, edi
mov edi, dword [ebp - 8]
push 0x529dfc
push 0
call fcn.004bf17b
add esp, 8
mov dword [ebp - 8], eax
cmp dword [0x561618], 0
mov dword [ebp - 0xc], 0
je 0x4793da
push eax
push edi
push str.Found_it___s___now_looking_for__s_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
mov eax, dword [ebp - 8]
add esp, 0x10
test eax, eax
je 0x47947f
test byte [ebx + 0x68], 1
je 0x479403
push 0x3a
push eax
call fcn.004bf050
mov ecx, eax
add esp, 8
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x479403
mov byte [ecx], 0
inc ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 4]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], esi
test eax, eax
je 0x479420
mov ecx, eax
call fcn.00479590
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x479469
call fcn.00479590
jmp 0x479469
mov edi, dword [ebp - 0x10]
mov eax, dword [esi + 4]
test byte [eax + 0x38], 1
jne 0x47945a
test edi, edi
je 0x479450
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x18]
or eax, dword [edx + 0x1c]
jne 0x479450
mov ecx, edi
call fcn.00479590
mov edi, esi
mov dword [ebp - 0x10], edi
jmp 0x479379
mov dword [ebp - 0x1c], esi
jmp 0x47939a
mov esi, dword [ebp - 0x24]
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 0x18]
call fcn.00477d80
cmp byte [ebp - 1], 0
jne 0x4794ef
mov eax, dword [ebp - 0x20]
jmp 0x479220
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
mov dword [edx], eax
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [edx + 4], eax
test ecx, ecx
je 0x47949f
mov edx, dword [esi + 4]
call fcn.00480470
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4794ab
call fcn.00479590
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4794b7
call fcn.00479590
mov ecx, dword [ebp - 0x18]
call fcn.00477d80
push dword [ebp - 0x14]
call fcn.004bae83
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
call fcn.00477d80
push dword [ebp - 0x14]
call fcn.004bae83
add esp, 4
or al, 0xff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x14]
call fcn.004bae83
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00476ab0
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x479542
push 0xc08
call fcn.004bb5d5
add esp, 4
mov esi, eax
push 0xc08
push 0
push esi
call fcn.004c13c0
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x24]
mov dword [esi], 0x800000f
push str.Address__llu_is_not_for_a_directory_n
call fcn.004768f0
add esp, 0xc
push dword [ebp - 0x14]
call fcn.004bae83
add esp, 4
pop edi
pop esi
or al, 0xff
pop ebx
mov esp, ebp
pop ebp
ret