Function at 0x11f05700
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x11fc52bc
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [0x12135738], ebx
call esi
mov ebp, dword [esp + 0x130]
mov dword [0x12135740], eax
cmp ebp, 0xffffffff
je 0x11f05c1a
cmp ebp, ebx
je 0x11f05c1a
cmp dword [0x12135744], ebx
jne 0x11f0576d
mov dword [0x12135738], 2
mov dword [0x1213573c], 0x12d
jmp 0x11f05c2e
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x74]
mov dword [esp + 0x70], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x70]
push 0x28
push eax
push ebp
call fcn.11f2ed60
mov al, byte [esp + 0x9c]
add esp, 0xc
test al, 0x10
je 0x11f057b2
mov dword [0x12135738], 0x1d
mov dword [0x1213573c], 0x138
jmp 0x11f05c2e
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [esp + 0x138]
mov dword [esp + 0x24], 1
test al, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], ebx
je 0x11f057f4
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
push edx
push ebp
call fcn.11f30300
add esp, 0xc
mov esi, dword [esp + 0x140]
cmp esi, ebx
je 0x11f05807
cmp dword [esi], ebx
je 0x11f05807
xor eax, eax
jmp 0x11f0580c
mov eax, 1
lea ecx, [esp + 0x30]
test ecx, ecx
jne 0x11f0584e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x12135738], 1
mov dword [0x1213573c], 0x21c2
call esi
mov dword [0x12135740], eax
mov dword [0x12135738], 7
mov dword [0x1213573c], 0x148
jmp 0x11f05c2e
mov edx, dword [0x12107284]
mov ecx, dword [0x12107288]
neg eax
sbb eax, eax
mov edi, dword [0x12135770]
mov dword [esp + 0x30], edx
mov edx, dword [0x1210728c]
add eax, 0x40002
mov dword [esp + 0x34], ecx
mov ecx, dword [0x12107290]
mov dword [esp + 0x50], eax
mov eax, dword [0x12106c1c]
mov dword [esp + 0x38], edx
mov edx, dword [0x12135750]
cmp eax, 0xffffffff
mov dword [esp + 0x3c], ecx
mov word [esp + 0x60], 0x40
mov dword [esp + 0x68], edx
mov word [esp + 0x62], 1
je 0x11f058b8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
je 0x11f058b8
mov edi, eax
mov dword [esp + 0x5c], edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x9c]
mov dword [esp + 0x98], ebx
mov dword [esp + 0xe8], ebx
rep stosd dword es:[edi], eax
mov ecx, 0xd
lea edi, [esp + 0xec]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
call fcn.11e923e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x128], ebx
call fcn.11e923e0
lea ecx, [esp + 0x20]
mov byte [esp + 0x128], 1
call fcn.11e923e0
mov eax, dword [esp + 0x134]
mov byte [esp + 0x128], 2
cmp eax, ebx
je 0x11f05940
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.11f1d8a0
add esp, 8
cmp eax, ebx
je 0x11f05940
lea ecx, [esp + 0x20]
call fcn.11e92ce0
lea ecx, [esp + 0x1c]
call fcn.11e923e0
cmp esi, ebx
mov byte [esp + 0x128], 3
je 0x11f0597e
mov edx, dword [esi]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x24]
call fcn.11e925f0
lea ecx, [esp + 0x1c]
call fcn.11e92d00
mov ecx, dword [esi]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
push ebp
call fcn.11ee6b00
add esp, 8
cmp eax, ebx
jne 0x11f05b71
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebp
call fcn.11ee2090
add esp, 0x28
test eax, eax
jne 0x11f05bd2
cmp word [esp + 0xf2], bx
jne 0x11f05bf6
push 0xffffffffffffffff
push 0x110
lea ecx, [esp + 0x18]
call fcn.11e925f0
lea ecx, [esp + 0x10]
call fcn.11e92d00
mov ebp, eax
mov ecx, 0x44
mov esi, 0x12135748
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x12106c1c]
cmp eax, 0xffffffff
je 0x11f059f9
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
je 0x11f059f9
mov dword [ebp + 0x28], eax
lea eax, [ebp + 0x48]
push eax
call fcn.11f2fd10
mov ecx, dword [0x1213574c]
mov dl, byte [0x12135754]
mov eax, dword [0x12135750]
mov dword [esp + 0xb4], ecx
mov cl, byte [0x12135758]
add esp, 4
mov byte [esp + 0xae], dl
mov dword [esp + 0xb4], eax
mov byte [esp + 0xaf], cl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dx, ax
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0xcc], eax
mov word [esp + 0x70], dx
call fcn.11e925e0
push eax
lea ecx, [esp + 0x1c]
call fcn.11e925f0
lea ecx, [esp + 0x14]
call fcn.11e925e0
lea ecx, [esp + 0x10]
mov ebp, eax
call fcn.11e92d00
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.11e92d00
mov ecx, ebp
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
push ecx
call fcn.11f2fd40
lea edx, [esp + 0x20]
mov esi, dword [esp + 0x134]
push ebx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x100]
push eax
lea edx, [esp + 0xb4]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
push esi
mov dword [esp + 0x58], ebx
call fcn.11f061a0
add esp, 0x2c
cmp eax, ebx
je 0x11f05b71
cmp dword [esp + 0x13c], ebx
je 0x11f05af8
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [0x12135c70]
mov dword [esp + 0x24], ebx
cmp eax, ebx
je 0x11f05b41
lea ecx, [esp + 0x98]
push ecx
push esi
call fcn.11f1b420
add esp, 8
test eax, eax
jne 0x11f05b41
mov dword [0x12135738], 0x1c
mov dword [0x1213573c], 0x199
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x12135740], eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x11f05b58
mov edx, dword [esp + 0x28]
push edx
push eax
push esi
call fcn.11f30520
add esp, 0xc
cmp dword [esp + 0x138], ebx
je 0x11f05b71
lea eax, [esp + 0x70]
push 0x28
push eax
push esi
call fcn.11f2eda0
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x11f05b86
push eax
call fcn.11e679b1
add esp, 4
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x128], 2
call fcn.11e92540
lea ecx, [esp + 0x20]
mov byte [esp + 0x128], 1
call fcn.11e92540
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], bl
call fcn.11e92540
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], 0xffffffff
call fcn.11e92540
mov eax, dword [esp + 0x24]
jmp 0x11f05c3a
mov dword [0x12135738], 0x2a
mov dword [0x1213573c], 0x16f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x12135740], eax
jmp 0x11f05b71
mov dword [0x12135738], 1
mov dword [0x1213573c], 0x17a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x12135740], eax
jmp 0x11f05b71
mov dword [0x12135738], 1
mov dword [0x1213573c], 0x127
call esi
mov dword [0x12135740], eax
mov eax, 1
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret