Function at 0x63228dd0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x6325fbe0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x63228df4
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
pop ecx
ret
mov ebp, dword [esp + 0x18]
lea eax, [esi + 0x350]
cmp eax, ebx
mov ecx, dword [ebp + 0x50]
mov edx, dword [ebp + 0x4c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
jne 0x63228e39
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x4c], ebx
push eax
push 2
push 0x71
call fcn.63230f10
add esp, 8
push eax
push 0xb
call fcn.63225f60
add esp, 0xc
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push eax
call fcn.6322c910
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x63228e6d
mov ecx, dword [ebp + 0x28]
mov dword [ebp + 0x4c], ebx
push ecx
push 2
push 0x6c
call fcn.63230f10
add esp, 8
push eax
push edi
call fcn.63225f60
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x14f90]
cmp eax, ebx
je 0x63228e86
push eax
call fcn.632102e6
add esp, 4
mov dword [esi + 0x14f90], ebx
mov eax, dword [esi + 0x15ff4]
cmp eax, ebx
je 0x63228e9f
push eax
call fcn.632102e6
add esp, 4
mov dword [esi + 0x15ff4], ebx
push 1
call fcn.6322cac0
add esp, 4
cmp eax, ebx
mov dword [esi + 0x3d1c], eax
je 0x63228ee2
mov edx, dword [ebp + 0x28]
push edx
push 2
push 0x72
call fcn.63230f10
add esp, 8
push eax
mov eax, dword [esi + 0x3d1c]
push eax
call fcn.63225f60
add esp, 0xc
mov dword [ebp + 0x4c], ebx
mov eax, dword [esi + 0x3d1c]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esi + 0x4ee4]
or edi, 0xffffffff
cmp ecx, ebx
mov eax, 0xfffffffe
mov edx, edi
je 0x63228fc5
cmp eax, 0xfffffffe
jne 0x63228f96
cmp edx, edi
jne 0x63228f96
call fcn.63226c70
mov ecx, dword [esi + 0x4ee8]
mov eax, dword [esi + 0x4e3a]
cmp ecx, eax
je 0x63228f4d
cmp dword [esi + 0x40], ebx
je 0x63228f32
push esi
push edi
push ebx
call fcn.6322f930
add esp, 0xc
jmp 0x63228f44
push 0x6325ccb0
push edi
push ebx
push 1
push ebx
call fcn.6322d510
add esp, 0x14
cmp eax, 1
jne 0x63228ffd
call fcn.63226d20
test eax, eax
jne 0x63228f84
call fcn.63226cb0
test eax, eax
je 0x63228f84
push 1
call fcn.632261b0
add esp, 4
cmp edx, ebx
jl 0x63228f84
jg 0x63228f73
cmp eax, ebx
jb 0x63228f84
mov ecx, dword [esi + 0x4e3a]
mov dword [esi + 0x4ee8], ecx
jmp 0x63228efa
mov dword [esi + 0x4ee8], edi
mov eax, 0xfffffffe
mov edx, edi
jmp 0x63228efa
cmp edx, ebx
jl 0x63228ff0
jg 0x63228fa0
cmp eax, ebx
jb 0x63228ff0
add eax, 0x16
push ebx
adc edx, ebx
push edx
mov edx, dword [esi + 0x3d10]
push eax
push edx
call fcn.63232590
mov eax, dword [esi + 0x4e3a]
add esp, 0x10
mov dword [esi + 0x4ee8], eax
jmp 0x63228ff0
push 1
call fcn.632261b0
add esp, 4
cmp edx, ebx
jl 0x63228ffd
jg 0x63228fd9
cmp eax, ebx
jb 0x63228ffd
mov ecx, dword [esi + 0x3d10]
add eax, 0x16
adc edx, ebx
push ebx
push edx
push eax
push ecx
call fcn.63232590
add esp, 0x10
xor edi, edi
mov di, word [esi + 0x4e28]
cmp edi, ebx
jne 0x63229018
mov edx, dword [esp + 0x18]
push 0x6325ccb0
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
mov dword [ebp + 0x4c], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
xor esi, esi
cmp edi, ebx
jle 0x63229038
mov eax, dword [esp + 0x10]
cmp esi, eax
jge 0x6322903c
call fcn.6322d110
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, edi
mov byte [esi + ecx - 1], al
jl 0x6322901e
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
cmp edi, eax
mov byte [esi + edx], bl
jl 0x63229049
mov edi, eax
mov dword [ebp + 0x4c], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret