Function at 0x700844ad
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x7014e127
call fcn.70055494
sub esp, 0x5c
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc0]
push esi
mov esi, dword [sym.imp.kernel32.dll_TlsGetValue]
push edi
push dword [0x7016a5f0]
xor edi, edi
mov dword [ebp - 0x44], eax
mov eax, dword [eax + 0x244]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x50], eax
call esi
mov eax, dword [eax]
lea ecx, [ebp - 0xd]
cmp eax, ecx
jae 0x7008450a
push dword [0x7016a5f0]
call esi
mov ecx, dword [eax]
lea eax, [ebp - 0xd]
sub eax, ecx
jmp 0x7008450c
xor eax, eax
cmp eax, 0x2800
jae 0x700845cf
push 0x24
call fcn.700e1dcd
mov esi, eax
cmp esi, edi
pop ecx
mov dword [ebp - 0x40], esi
jne 0x70084548
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
call fcn.7006107f
push 0xffffffffffffffff
push edi
push esi
push 0x15
push 0xfffffffffffffffb
mov ecx, eax
call fcn.700e1dcd
mov edi, eax
jmp 0x70084586
mov eax, dword [ebp + 8]
mov dword [esi], ebx
mov ebx, dword [ebp + 0x18]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
push esi
mov dword [esi + 0x18], eax
call fcn.700e1dcd
mov edi, eax
cmp edi, 1
pop ecx
jne 0x70084586
mov eax, dword [esi + 0x14]
mov dword [ebx], eax
xor edi, edi
inc edi
lea eax, [ebp - 0x38]
push eax
call fcn.700e1dcd
lea eax, [ebp - 0x3c]
push eax
call fcn.700e1dcd
lea eax, [ebp - 0x4c]
push eax
call fcn.700e1dcd
lea eax, [ebp - 0x40]
push eax
call fcn.700e1dcd
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x244], eax
add esp, 0x10
mov eax, edi
lea esp, [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
mov esi, dword [ebp + 0x18]
mov eax, dword [esi]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc0]
add eax, 0x2298
add dword [eax], 1
mov dword [ebp - 0x20], 3
adc dword [eax + 4], edi
mov ecx, dword [ebx + 4]
call fcn.70073e54
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x18], edi
mov ecx, dword [eax + 0xc0]
test byte [ecx + 1], 0x10
mov dword [ebp - 0x24], edi
jne 0x70084730
cmp dword [ebp + 0x1c], edi
jne 0x70084651
mov eax, dword [eax + 0xbc]
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
mov ecx, eax
call fcn.700c9115
mov edi, eax
cmp edi, 1
jne 0x70084586
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xc0]
test byte [ecx + 1], 0x20
je 0x70084689
mov ecx, dword [eax + 0xbc]
jmp 0x70084681
cmp dword [ebp + 0x1c], 1
jne 0x70084730
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call fcn.700c9115
mov edi, eax
cmp edi, 1
jne 0x70084586
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xc0]
test byte [ecx + 1], 0x20
je 0x70084689
call fcn.7008072d
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x70084730
push dword [ebp + 0x14]
push esi
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.700e1dcd
xor edi, edi
inc edi
cmp eax, edi
mov dword [ebp - 0x20], eax
jne 0x7008471d
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x70084586
push dword [ebp + 8]
movzx eax, word [ebp - 0x14]
push dword [esi]
push eax
call fcn.700e1dcd
test eax, eax
je 0x70084586
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0xc0]
add ecx, 0x2298
add dword [ecx], 0xffffffff
adc dword [ecx + 4], 0xffffffff
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0xc0]
mov edx, dword [eax]
add ecx, 0x2290
add dword [ecx], edx
mov edx, dword [eax + 4]
adc dword [ecx + 4], edx
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 0xc0]
mov edx, dword [eax + 8]
add ecx, 0x2298
add dword [ecx], edx
mov eax, dword [eax + 0xc]
adc dword [ecx + 4], eax
jmp 0x70084586
cmp eax, 3
je 0x70084730
cmp dword [ebp - 0x20], 4
je 0x70084730
mov edi, dword [ebp - 0x20]
jmp 0x70084586
cmp dword [ebp + 0xc], 0
je 0x70084760
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push dword [ebp + 8]
push esi
call fcn.7008a7d4
mov edi, eax
cmp edi, 1
jne 0x70084586
mov eax, dword [ebp + 0xc]
test byte [eax + 0x94], 4
je 0x70084760
and dword [ebp + 0xc], 0
lea ecx, [ebx + 0x54]
mov dword [ebp - 0x2c], ecx
call fcn.7005e89c
test eax, eax
je 0x70084c2e
push eax
lea ecx, [ebx + 0x7c]
call fcn.700e1dcd
movzx ecx, word [ebx + 0x94]
mov esi, dword [ebp + 8]
sub ecx, 4
mov edx, ecx
shr ecx, 2
add esi, 6
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx ecx, word [ebx + 0x94]
mov edi, dword [ebp - 0x14]
mov dword [ecx + eax - 4], edi
lea esi, [ebx + 0xe4]
mov edx, dword [esi]
push eax
mov ecx, esi
mov dword [ebp - 0x28], eax
call dword [edx + 0xc]
test eax, eax
je 0x70084874
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp + 0xc]
dec dword [eax + 0x38]
test esi, esi
je 0x70084856
test byte [esi + 0x94], 4
je 0x70084834
push 0x20
pop eax
call fcn.70055600
movzx eax, di
mov ebx, esp
push eax
push 0x70004568
push ebx
call dword [sym.imp.msvcrt.dll_swprintf]
call fcn.7006107f
mov edi, eax
lea eax, [ebp + 0xe]
push eax
push dword [esi + 0x12]
call fcn.700e1dcd
add esp, 0x14
push 0xffffffffffffffff
push eax
push 0
push 0x145b
push 0xfffffffffffffff4
mov ecx, edi
call fcn.700e1dcd
push 2
push 0
push ebx
mov ecx, edi
call fcn.700e1dcd
push 0xfffffffffffffff4
pop edi
jmp 0x70084586
lea eax, [ebp + 0xe]
push eax
push dword [esi + 0x12]
call fcn.700e1dcd
test eax, eax
pop ecx
pop ecx
je 0x7008484c
cmp word [eax], 0
jne 0x70084852
mov eax, dword [esi + 0x87]
test eax, eax
jne 0x7008485b
mov eax, 0x70001d68
push 0xffffffffffffffff
push eax
push 0
push 0xbbb
push 0xfffffffffffffff4
call fcn.700e1dcd
add esp, 0x14
jmp 0x70084544
push dword [ebp - 0x28]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc0]
mov ecx, dword [eax + 0x2290]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x60], ecx
mov ecx, dword [eax + 0x2294]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [eax + 0x2298]
xor esi, esi
mov dword [ebp - 0x68], ecx
mov ecx, dword [eax + 0x229c]
mov dword [eax + 0x2290], esi
mov dword [eax + 0x2294], esi
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc0]
mov dword [eax + 0x2298], esi
mov dword [eax + 0x229c], esi
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
xor eax, eax
inc eax
and ecx, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
cmp eax, esi
mov dword [ebp - 0x1c], ecx
je 0x700849d9
test byte [eax + 0x93], 0x10
je 0x700849ed
push 0x98
call fcn.700e1dcd
pop ecx
mov dword [ebp + 0x1c], eax
cmp eax, esi
mov dword [ebp - 4], 3
je 0x70084924
push esi
push esi
push esi
push dword [ebx + 4]
mov ecx, eax
call fcn.7007dd3a
mov dword [ebp + 0x1c], eax
jmp 0x70084927
mov dword [ebp + 0x1c], esi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], esi
jne 0x70084946
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
call fcn.7006107f
push 0xffffffffffffffff
push esi
push edi
jmp 0x70084539
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x77]
mov ecx, dword [ebp + 0x1c]
push 0x2000
mov dword [ebp - 0x48], eax
call fcn.700e1dcd
mov ecx, dword [ebp + 0x1c]
push 0x100000
lea eax, [ebp - 0x48]
push eax
push 1
call fcn.700e1dcd
mov edi, eax
cmp edi, 1
jne 0x70084586
mov ecx, dword [ebp + 0x1c]
push esi
call fcn.7007d447
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xc0]
push esi
push dword [ebp + 0x1c]
call fcn.700e1dcd
mov edi, eax
cmp edi, 1
jne 0x70084586
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push edx
push dword [ebp + 8]
call dword [eax + 0x1c]
mov ecx, dword [ebp + 0x14]
push eax
call fcn.700e1dcd
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xc0]
call fcn.7007fe79
test eax, eax
jne 0x70084aef
push edi
call fcn.700e1dcd
jmp 0x70084c35
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xbc]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x18]
mov eax, dword [ebp + 0xc]
cmp edi, esi
je 0x70084a17
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 8]
mov ecx, edi
call dword [eax + 0x1c]
mov ecx, dword [ebp + 0x14]
push eax
call fcn.700e1dcd
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x3c]
mov dword [ebp - 0x30], eax
jmp 0x70084aef
mov eax, dword [eax + 0x7b]
mov edi, 0x20e
push edi
mov dword [ebp + 0x10], eax
call fcn.700e1dcd
pop ecx
mov dword [ebp + 0x1c], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x70084a42
push dword [ebp + 8]
mov ecx, eax
call fcn.700e1dcd
mov dword [ebp + 0x1c], eax
jmp 0x70084a45
mov dword [ebp + 0x1c], esi
mov eax, dword [ebp + 0x1c]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
mov dword [ebp - 0x38], eax
je 0x70084930
push edi
call fcn.700e1dcd
pop ecx
mov dword [ebp - 0x48], eax
cmp eax, esi
mov dword [ebp - 4], 1
je 0x70084a78
push esi
mov ecx, eax
call fcn.700e1dcd
mov edi, eax
jmp 0x70084a7a
xor edi, edi
or dword [ebp - 4], 0xffffffff
cmp edi, esi
mov dword [ebp - 0x3c], edi
je 0x70084930
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], esi
push dword [ebp + 0x10]
mov dword [ebp - 4], 2
push dword [ebp + 0x1c]
call fcn.700e1dcd
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x77]
xor ecx, ecx
mov cx, word [eax + 6]
movzx eax, word [eax + 2]
dec ax
push eax
push ecx
mov ecx, edi
call fcn.700e1dcd
mov ecx, dword [ebp - 0x58]
push edi
push dword [ebp + 0x1c]
call fcn.700e1dcd
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x1c]
call fcn.70084d7b
or dword [ebp - 4], 0xffffffff
push esi
push esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.700e1dcd
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x18]
push dword [ebp - 0x28]
or ecx, 0xfffffffe
and dword [eax], ecx
lea ecx, [ebx + 0xe4]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x2c]
dec dword [eax + 0x38]
cmp dword [ebp - 0x30], esi
je 0x70084bec
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x244], esi
jne 0x70084bec
mov edi, dword [ebp + 0x14]
mov ecx, edi
call fcn.700539fb
test eax, eax
jne 0x70084bec
cmp byte [edi + 8], 1
je 0x70084bec
cmp dword [ebp - 0x20], 3
jne 0x70084bec
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x70084bec
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x5c]
mov eax, dword [edx + 0xb0]
mov edi, dword [edx + 0xb4]
cmp edi, esi
mov dword [ebp - 0x58], eax
jl 0x70084b8f
jg 0x70084b76
cmp eax, esi
jbe 0x70084b8f
call fcn.7009e09d
cdq
cmp edx, edi
jl 0x70084b8f
jg 0x70084b87
cmp eax, dword [ebp - 0x58]
jb 0x70084b8f
mov ecx, dword [ebp - 0x18]
call fcn.7009ea05
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x34]
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.700e1dcd
cmp eax, 4
je 0x70084bb3
cmp eax, 1
mov edi, eax
jne 0x70084586
mov ecx, dword [ebp - 0x24]
cmp ecx, esi
je 0x70084bec
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc0]
push esi
push dword [eax + 0x229c]
push dword [eax + 0x2298]
push dword [eax + 0x2294]
push dword [eax + 0x2290]
movzx eax, word [ebp - 0x14]
push dword [ebp + 8]
push dword [ebp - 0x34]
push eax
call fcn.700e1dcd
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc0]
mov ecx, dword [ebp - 0x60]
add eax, 0x2290
add dword [eax], ecx
mov ecx, dword [ebp - 0x5c]
adc dword [eax + 4], ecx
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc0]
mov ecx, dword [ebp - 0x68]
add eax, 0x2298
add dword [eax], ecx
mov ecx, dword [ebp - 0x64]
adc dword [eax + 4], ecx
mov ecx, dword [ebp + 0x14]
call fcn.700539fb
test eax, eax
je 0x70084583
push 1
call fcn.700e1dcd
pop ecx
jmp 0x70084544