Function at 0x63227710
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6325fbe0]
sub esp, 0x10
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x63227734
pop esi
mov eax, 4
pop ebp
add esp, 0x10
ret
mov eax, dword [esi + 0x4e7c]
xor ecx, ecx
push ebx
cmp eax, ebp
push edi
jne 0x63227959
mov edi, dword [esi + 0x4e3a]
mov ebx, dword [esi + 0x4e3e]
cmp edi, ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], edi
je 0x632278d4
mov dword [esi + 0x3d08], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov dword [esi + 0x3d0c], ebp
cmp dword [esp + 0x14], ebp
jne 0x63227951
call fcn.63226c70
cmp edi, 0xffffffff
jne 0x632277b6
cmp ebx, ebp
je 0x632277fb
cmp dword [esi + 0x40], ebp
je 0x632277a7
push esi
lea ecx, [ebx + 1]
push ebp
push ecx
call fcn.6322f930
add esp, 0xc
jmp 0x632277e7
push 0x6325ccb0
lea edx, [ebx + 1]
push ebp
push edx
push 1
push ebp
jmp 0x632277df
cmp dword [esi + 0x40], ebp
je 0x632277ce
lea eax, [edi + 1]
push esi
lea ecx, [ebx + 1]
push eax
push ecx
call fcn.6322f930
add esp, 0xc
jmp 0x632277e7
lea edx, [edi + 1]
push 0x6325ccb0
lea eax, [ebx + 1]
push edx
push eax
push 1
push 1
call fcn.6322d510
add esp, 0x14
cmp eax, 1
je 0x632277fb
mov ecx, 0x30
cmp eax, 1
je 0x6322777a
jmp 0x63227951
call fcn.63226cb0
cmp eax, 0xffffffff
jne 0x6322781b
push 0x6325ccb0
push ebp
push ebp
push ebp
push 2
call fcn.6322d510
add esp, 0x14
xor ecx, ecx
jmp 0x632277f1
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x4ee8], ebx
push ecx
call fcn.63227b50
add esp, 4
cmp eax, ebp
jle 0x632278bb
mov ecx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esi + 0x4e4a]
cmp ecx, eax
mov dword [esp + 0x10], ecx
jae 0x63227856
inc ebx
mov dword [esp + 0x18], ebp
xor ecx, ecx
jmp 0x6322777a
cmp edi, 0xffffffff
jne 0x6322786a
mov eax, ecx
cdq
mov dword [esi + 0x4e4a], eax
mov dword [esi + 0x4e4e], edx
lea edi, [esi + 0x14fac]
lea edx, [esi + 0x157ac]
push edi
push edx
mov dword [esi + 0x4e7c], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x15fd0]
push eax
push edi
call fcn.6322f6a0
mov edi, dword [esp + 0x24]
add esp, 8
mov dword [esi + 0x3d08], ebp
mov dword [esi + 0x3d0c], ebp
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], ebp
xor ecx, ecx
jmp 0x6322777a
push 0x6325ccb0
push ebp
push ebp
push ebp
push 3
call fcn.6322d510
add esp, 0x14
xor ecx, ecx
jmp 0x6322777a
mov dword [esi + 0x3d08], ebp
push 1
mov dword [esi + 0x3d0c], ebp
call fcn.63227b50
mov ecx, dword [esi + 0x4e4a]
add esp, 4
cmp eax, ecx
je 0x63227915
push 0x6325ccb0
push ebp
push ebp
push ebp
push 3
call fcn.6322d510
add esp, 0x14
pop edi
mov ecx, 3
pop ebx
pop esi
mov eax, ecx
pop ebp
add esp, 0x10
ret
lea edi, [esi + 0x14fac]
lea ecx, [esi + 0x157ac]
push edi
mov dword [esi + 0x3d08], ebp
push ecx
mov dword [esi + 0x3d0c], ebp
mov dword [esi + 0x4e7c], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esi + 0x15fd0]
push edx
push edi
call fcn.6322f6a0
add esp, 8
jmp 0x63227959
cmp ecx, ebp
jne 0x632279f2
mov eax, dword [esi + 0x3d08]
mov ecx, dword [esi + 0x4e4a]
cmp eax, ecx
jae 0x632279ed
cmp dword [esi + 0x3d0c], ebp
jl 0x632279ed
jg 0x6322797d
mov ecx, eax
cmp ecx, ebp
jb 0x632279ed
mov edx, dword [esi + 0x4ed0]
push eax
lea eax, [esi + 0x4eae]
lea ecx, [esi + 0x4e80]
push eax
mov eax, dword [esi + 0x4ed8]
push ecx
push edx
push eax
call fcn.63226f20
mov ecx, dword [esi + 0x3d08]
mov edx, dword [esi + 0x4ed0]
mov eax, dword [esi + 0x4ed8]
push ecx
push edx
push eax
call fcn.63226dd0
add esp, 0x20
test eax, eax
je 0x63227906
mov ecx, dword [esi + 0x3d08]
pop edi
add ecx, 1
pop ebx
mov dword [esi + 0x3d08], ecx
mov eax, dword [esi + 0x3d0c]
adc eax, ebp
xor ecx, ecx
mov dword [esi + 0x3d0c], eax
pop esi
mov eax, ecx
pop ebp
add esp, 0x10
ret
mov ecx, 2
pop edi
pop ebx
pop esi
mov eax, ecx
pop ebp
add esp, 0x10
ret