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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1025a35c], 0
push ebx
mov ebx, ecx
mov dword [ebp - 0x148], ebx
jne 0x10198a56
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.101c3c30
push eax
call fcn.101c4210
add esp, 4
call fcn.101c3a70
mov eax, dword [0x1025a378]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov byte [0x10259ce8], 0
cmp eax, 0xffffffff
je 0x10198acb
cmp dword [0x1025a37c], 0xffffffff
je 0x10198acb
push eax
mov dword [ebp - 0x140], 0
call edi
test eax, eax
jne 0x10198acb
mov eax, dword [0x1025a380]
test eax, eax
je 0x10198acb
lea ecx, [ebp - 0x140]
push ecx
call eax
push eax
push dword [0x1025a378]
call esi
push dword [ebp - 0x140]
push dword [0x1025a37c]
call esi
mov esi, dword [ebx + 0x218]
cmp esi, dword [ebx + 0x21c]
je 0x10199395
lea edi, [ebx + 0xf8]
mov ecx, ebx
call fcn.101b9220
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x10198af4
mov ecx, dword [esi]
fld qword [ebx + 0xd0]
fnstcw word [ebp - 0x142]
movzx eax, word [ebp - 0x142]
or eax, 0xc00
mov dword [ebp - 0x14c], eax
push 0x64
fldcw word [ebp - 0x14c]
fistp qword [ebp - 0x154]
mov eax, dword [ebp - 0x154]
push eax
push ecx
fldcw word [ebp - 0x142]
push str.ScanFileName
mov ecx, ebx
call fcn.100d9bb0
test eax, eax
jne 0x10198b48
mov dword [ebx + 0xc8], 1
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebx + 0xf0], 0
mov dword [edi + 0x10], 0
jb 0x10198b63
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebx + 0x110]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ecx
jb 0x10198b79
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebx + 0x128]
cmp dword [eax + 0x14], 8
mov dword [ebx + 0xf4], ecx
mov dword [eax + 0x10], ecx
jb 0x10198b95
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x10198baa
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov edi, eax
jmp 0x10198baf
mov edi, 0x10219d7c
call fcn.10003980
test eax, eax
je 0x10199403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x138], eax
call fcn.10003980
test eax, eax
je 0x10199403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x134], eax
call fcn.10003980
test eax, eax
je 0x10199403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x130], eax
call fcn.10003980
test eax, eax
je 0x10199403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x12c], eax
call fcn.10003980
test eax, eax
je 0x10199403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x124]
push edi
mov dword [ebp - 0x128], eax
call fcn.10132670
call fcn.10003980
test eax, eax
je 0x10199403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
call fcn.10003980
test eax, eax
je 0x10199403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
call fcn.10003980
test eax, eax
je 0x10199403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
call fcn.10003980
test eax, eax
je 0x10199403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
call fcn.10003980
test eax, eax
je 0x10199403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
call fcn.10003980
test eax, eax
je 0x10199403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x13c], 0
cmp dword [esi + 0x14], 8
mov edx, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xffffffff
jb 0x10198d18
mov edx, dword [esi]
test edx, edx
jne 0x10198d20
xor ecx, ecx
jmp 0x10198d34
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10198d25
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x128]
call fcn.10004050
mov eax, dword [ebx + 0x228]
lea ecx, [eax - 1]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 2
mov dword [ebp - 0x150], ecx
cmp eax, 5
jne 0x10198d69
mov dword [ebx + 0xe4], 1
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x10198d73
mov edi, dword [esi]
call fcn.10003980
test eax, eax
je 0x10199403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x144]
push edi
mov dword [ebp - 0x144], eax
call fcn.10004a70
test al, al
jne 0x10198dcc
test edi, edi
jne 0x10198da8
xor ecx, ecx
jmp 0x10198dbf
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10198db0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x144]
call fcn.10004050
push 1
push 0x10219e0c
lea ecx, [ebp - 0x144]
call fcn.100048e0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x14c], esi
jb 0x10198df2
mov eax, dword [esi]
mov dword [ebp - 0x14c], eax
call fcn.10003980
test eax, eax
je 0x10199403
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x140]
push 0x10219e00
mov dword [ebp - 0x140], eax
call fcn.10004a70
test al, al
jne 0x10198e35
push 4
push 0x10219e00
lea ecx, [ebp - 0x140]
call fcn.10004050
mov edi, dword [ebp - 0x140]
mov ecx, dword [edi - 0x10]
lea ebx, [edi - 0x10]
test ecx, ecx
je 0x10198e50
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10198e66
call fcn.10003980
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x10199403
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edx, dword [ebp - 0x14c]
add eax, 0x10
mov dword [ebp - 0x140], eax
test edx, edx
jne 0x10198e82
xor ecx, ecx
jmp 0x10198ea3
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x14c], eax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10198e90
sub ecx, dword [ebp - 0x14c]
sar ecx, 1
push ecx
push edx
push dword [edi - 0xc]
lea eax, [ebp - 0x140]
push edi
push eax
call fcn.100258c0
add esp, 0x14
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x10198ecd
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0x10], 0
jbe 0x10198f1f
mov edx, dword [esi + 0x14]
mov eax, esi
cmp edx, 8
jb 0x10198edf
mov eax, dword [esi]
cmp word [eax], 0x7b
jne 0x10198f1f
mov ecx, esi
cmp edx, 8
jb 0x10198eee
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x148]
lea edx, [ebp - 0x13c]
push 1
push 1
push 2
push dword [ebp - 0x150]
mov eax, dword [ebx]
push 3
push dword [ebx + 0xe0]
push edx
push ecx
mov ecx, ebx
call dword [eax + 0x98]
jmp 0x101991fb
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x10198f53
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x10198f43
mov eax, dword [eax + 0x80]
jmp 0x10198f45
xor eax, eax
test eax, eax
je 0x10198f53
push dword [ebp - 0x144]
call eax
jmp 0x10198f5f
push dword [ebp - 0x144]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov ecx, eax
mov eax, dword [esi + 0x14]
test ecx, ecx
je 0x101990d4
mov ecx, esi
cmp eax, 8
jb 0x10198f75
mov ecx, dword [esi]
mov edx, dword [ebp - 0x148]
lea edi, [ebp - 0x13c]
push dword [edx + 0x224]
mov eax, dword [edx]
push 0
push 3
push dword [edx + 0xe0]
push edi
push ecx
mov ecx, edx
call dword [eax + 0x9c]
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x10198fa7
mov edi, dword [esi]
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x10198fd3
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x10198fc8
mov eax, dword [eax + 0x3c]
jmp 0x10198fca
xor eax, eax
test eax, eax
je 0x10198fd3
push edi
call eax
jmp 0x10198fda
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [esi + 0x14], 8
mov ebx, eax
mov edx, esi
jb 0x10198fe6
mov edx, dword [esi]
test edx, edx
jne 0x10198fee
xor ecx, ecx
jmp 0x10199002
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10198ff3
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x144]
call fcn.10004050
push 1
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x144]
call fcn.1000b1c0
mov ecx, 0x10219e0c
mov eax, dword [eax]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10199056
test dx, dx
je 0x10199052
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10199056
add eax, 4
add ecx, 4
test dx, dx
jne 0x10199030
xor edi, edi
jmp 0x1019905b
sbb edi, edi
or edi, 1
mov edx, dword [ebp - 0x158]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10199079
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x1019908f
push 1
push 0x10219e0c
lea ecx, [ebp - 0x144]
call fcn.100048e0
mov eax, dword [ebp - 0x148]
mov eax, dword [eax + 0x224]
test eax, eax
je 0x101991f5
cmp ebx, 0xffffffff
je 0x101991f5
test ebx, 0x400
jne 0x101991f5
mov ebx, dword [ebp - 0x148]
dec eax
push 1
push eax
push dword [ebp - 0x144]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x5c]
jmp 0x101991fb
mov edi, esi
cmp eax, 8
jb 0x101990dd
mov edi, dword [esi]
test edi, edi
je 0x10199150
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x1019910d
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x10199102
mov eax, dword [eax + 0x3c]
jmp 0x10199104
xor eax, eax
test eax, eax
je 0x1019910d
push edi
call eax
jmp 0x10199114
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10199150
test al, 0x10
jne 0x10199150
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x10199127
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x148]
lea edx, [ebp - 0x13c]
push 0
push 0
push 3
push dword [ebx + 0xe0]
mov eax, dword [ebx]
push edx
push ecx
mov ecx, ebx
call dword [eax + 0x8c]
jmp 0x101991fb
cmp dword [ebp - 0x140], 0
je 0x101991f5
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x10199194
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x1019917e
mov eax, dword [eax + 0x3c]
jmp 0x10199180
xor eax, eax
test eax, eax
je 0x10199194
push dword [ebp - 0x140]
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x101991a2
push dword [ebp - 0x140]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call ebx
cmp eax, 0xffffffff
je 0x101991af
test al, 0x10
je 0x1019911d
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101991e0
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101991d0
mov eax, dword [eax + 0x3c]
jmp 0x101991d2
xor eax, eax
test eax, eax
je 0x101991e0
push dword [ebp - 0x140]
call eax
jmp 0x101991e8
push dword [ebp - 0x140]
call ebx
cmp eax, 0xffffffff
je 0x101991f5
test al, 0x10
je 0x1019911d
mov ebx, dword [ebp - 0x148]
mov edx, dword [ebp - 0x140]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10199219
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x144]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10199237
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10199252
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1019926d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10199288
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101992a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101992be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101992d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x124]
call fcn.10132d00
mov edx, dword [ebp - 0x128]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10199302
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x12c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10199320
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x130]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1019933e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x134]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1019935c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x138]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1019937a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x18
lea edi, [ebx + 0xf8]
cmp esi, dword [ebx + 0x21c]
jne 0x10198ae3
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x84]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xa0]
mov eax, dword [0x1025a378]
cmp eax, 0xffffffff
je 0x101993ed
cmp dword [0x1025a37c], 0xffffffff
je 0x101993ed
push eax
call edi
test eax, eax
je 0x101993ed
cmp dword [0x1025a384], 0
je 0x101993ed
push dword [0x1025a37c]
call edi
push eax
call dword [0x1025a384]
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1025a378]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100030c0
int3