Function at 0x63227e70
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6325fbe0]
sub esp, 0x18
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x63227e92
pop edi
mov eax, 4
pop esi
add esp, 0x18
ret
mov edi, dword [esp + 0x24]
lea edx, [esi + 0x350]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x8e]
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jne 0x63227efe
test ecx, ecx
je 0x63227f02
lea eax, [esi + 0x14fac]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x63227f55
push edi
call fcn.632270a0
add esp, 4
test eax, eax
je 0x63227f28
mov ecx, dword [edi + 0x28]
push ecx
push 2
push 0x67
call fcn.63230f10
add esp, 8
push eax
push 3
call fcn.63225f60
add esp, 0xc
mov eax, 3
pop edi
pop esi
add esp, 0x18
ret
test ecx, ecx
je 0x63227eb5
mov ecx, dword [edi + 0x28]
push ecx
push 2
push 0x6a
call fcn.63230f10
add esp, 8
push eax
push 0x2f
call fcn.63225f60
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
add esp, 0x18
ret
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x63227f55
mov edx, dword [edi + 0x28]
push edx
push 2
push 0x6b
call fcn.63230f10
add esp, 8
push eax
push 2
call fcn.63225f60
add esp, 0xc
mov eax, 2
pop edi
pop esi
add esp, 0x18
ret
mov eax, dword [esi + 0x44]
test eax, eax
je 0x63227f80
call fcn.63227710
test eax, eax
mov dword [esi + 0x3d1c], eax
jne 0x63227f8b
lea eax, [esi + 0x16000]
push eax
call fcn.6322dc40
add esp, 4
test eax, eax
jne 0x63227f5c
jmp 0x63227f8b
call fcn.63227710
mov dword [esi + 0x3d1c], eax
mov eax, dword [esi + 0x3d1c]
test eax, eax
jne 0x6322832c
mov ax, word [esi + 0x4e8e]
push ebx
mov cx, ax
mov ebx, eax
shr cx, 9
and eax, 0x1f
add ecx, 0x50
mov dword [esp + 0x18], eax
mov ax, word [esi + 0x4e8c]
push ebp
mov dword [esp + 0x18], ecx
mov cx, ax
mov ebp, eax
and eax, 0x1f
mov dword [esp + 0x2c], 0
shl eax, 1
shr ebx, 5
shr ebp, 5
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x44]
and ebx, 0xf
and ebp, 0x3f
shr cx, 0xb
test eax, eax
mov dword [esp + 0x14], ecx
jne 0x63228019
lea edi, [esi + 0x16000]
push edi
call fcn.6322dc40
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x63228019
mov eax, dword [esi + 0x48]
test eax, eax
je 0x63228019
push edi
push edi
call fcn.6322dd20
add esp, 8
lea edx, [esi + 0x4588]
mov ecx, 8
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
test edi, edi
je 0x6322815d
mov eax, dword [esp + 0x14]
and ebp, 0xffff
and eax, 0xffff
push ebp
push eax
mov eax, dword [esp + 0x20]
and eax, 0xffff
xor edx, edx
mov ecx, 0x64
and ebx, 0xffff
div ecx
mov eax, dword [esp + 0x24]
lea ebp, [esi + 0x4588]
and eax, 0xffff
push edx
push eax
push ebx
push str._02u__02u__02u___02u:_02u
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x2c]
add esp, 0x1c
and eax, 0xffff
lea ebx, [esi + 0x16000]
mov dword [edi + 0x12e], eax
mov edx, dword [esi + 0x4e94]
mov dword [edi + 6], edx
mov eax, dword [esi + 0x4e98]
push 0x104
lea ecx, [edi + 0x26]
push ebx
push ecx
mov dword [edi + 2], eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [edi + 0x14]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x2f
push ebx
call fcn.63231060
test eax, eax
mov ecx, 1
jne 0x632280d9
mov word [edi + 0xe], ax
jmp 0x632280dd
mov word [edi + 0xe], cx
mov ax, word [esi + 0x4e8a]
mov word [edi + 0xa], ax
mov dx, word [esi + 0x4e88]
mov word [edi + 0xc], dx
mov eax, dword [esi + 0x4e90]
mov dword [edi + 0x10], eax
mov dx, word [esi + 0x3d20]
mov word [edi], dx
mov ebp, dword [esi + 0x3d20]
mov eax, dword [esi + 0x4ea6]
inc ebp
and eax, 0x7fff
mov dword [esi + 0x3d20], ebp
mov dword [edi + 0x12a], eax
mov dl, byte [esi + 0x4e88]
test cl, dl
je 0x63228137
or ah, 0x80
mov dword [edi + 0x12a], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x63228149
or dword [edi + 0x12a], 0x10000
pop ebp
mov dword [edi + 0x132], 0
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
and edi, 0xffff
and ebp, 0xffff
push edi
and eax, 0xffff
push ebp
push eax
mov eax, dword [esp + 0x24]
and ebx, 0xffff
and eax, 0xffff
add eax, 0x76c
push eax
mov eax, dword [esp + 0x2c]
and eax, 0xffff
push eax
push ebx
push str._02u__02u__04u___02u:_02u:_02u
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [esp + 0x44]
add esp, 0x20
mov dword [ebx + 0x846], edi
mov eax, dword [esi + 0x4e98]
cmp eax, 0xffffffff
je 0x632281c7
xor ebp, ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ebp
jmp 0x632281eb
mov eax, dword [esi + 0x4eb2]
mov ecx, 0x20
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x4eb2]
mov edx, dword [esi + 0x4eb6]
call fcn.63236b80
mov dword [ebx + 0xc], eax
xor ebp, ebp
mov eax, dword [esi + 0x4e94]
cmp eax, 0xffffffff
je 0x632281fe
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ebp
jmp 0x63228245
cmp dword [esi + 0x4e98], 0xffffffff
je 0x63228223
mov ecx, dword [esi + 0x4eb2]
mov dword [ebx + 0x10], ecx
mov eax, dword [esi + 0x4eb2]
mov edx, dword [esi + 0x4eb6]
mov ecx, 0x20
jmp 0x6322823d
mov edx, dword [esi + 0x4eba]
mov ecx, 0x20
mov dword [ebx + 0x10], edx
mov eax, dword [esi + 0x4eba]
mov edx, dword [esi + 0x4ebe]
call fcn.63236b80
mov dword [ebx + 0x14], eax
lea edi, [esi + 0x16000]
push 0x800
lea eax, [ebx + 0x46]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esi + 0x4588]
lea ecx, [ebx + 0x26]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x2f
push edi
call fcn.63231060
test eax, eax
mov ecx, 1
jne 0x63228283
mov word [ebx + 0x24], bp
jmp 0x63228287
mov word [ebx + 0x24], cx
mov dx, word [esi + 0x4e8a]
mov word [ebx + 0x20], dx
mov ax, word [esi + 0x4e88]
mov word [ebx + 0x22], ax
mov edx, dword [esi + 0x4e90]
mov dword [ebx + 0x1c], edx
mov eax, dword [esi + 0x3d20]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x3d20]
inc eax
mov dword [esi + 0x3d20], eax
mov eax, dword [esi + 0x4ea6]
and eax, 0x7fff
mov dword [ebx + 0x18], eax
mov dl, byte [esi + 0x4e88]
test cl, dl
je 0x632282da
or ah, 0x80
mov dword [ebx + 0x18], eax
cmp dword [esp + 0x2c], ebp
je 0x632282e7
or dword [ebx + 0x18], 0x10000
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 0x4e86]
mov dx, word [esi + 0x4e84]
shl ecx, 0x10
add ecx, edx
mov dword [ebx + 0x84e], ebp
mov dword [ebx + 0x852], ebp
mov dword [ebx + 0x856], ebp
mov dword [ebx + 0x85a], ebp
mov dword [ebx + 0x85e], ebp
mov dword [ebx + 0x862], ebp
mov dword [ebx + 0x84a], ecx
pop ebp
xor eax, eax
pop ebx
pop edi
pop esi
add esp, 0x18
ret