Function at 0x1002a8c0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10063c04]
sub esp, 0x18
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1002a8e2
pop edi
mov eax, 4
pop esi
add esp, 0x18
ret
mov edi, dword [esp + 0x24]
lea edx, [esi + 0x348]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x8e]
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jne 0x1002a94e
test ecx, ecx
je 0x1002a952
lea eax, [esi + 0x14f64]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1002a9a5
push edi
call fcn.10029af0
add esp, 4
test eax, eax
je 0x1002a978
mov ecx, dword [edi + 0x28]
push ecx
push 2
push 0x67
call fcn.10033300
add esp, 8
push eax
push 3
call fcn.10028a10
add esp, 0xc
mov eax, 3
pop edi
pop esi
add esp, 0x18
ret
test ecx, ecx
je 0x1002a905
mov ecx, dword [edi + 0x28]
push ecx
push 2
push 0x6a
call fcn.10033300
add esp, 8
push eax
push 0x2f
call fcn.10028a10
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
add esp, 0x18
ret
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x1002a9a5
mov edx, dword [edi + 0x28]
push edx
push 2
push 0x6b
call fcn.10033300
add esp, 8
push eax
push 2
call fcn.10028a10
add esp, 0xc
mov eax, 2
pop edi
pop esi
add esp, 0x18
ret
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1002a9d0
call fcn.1002a150
test eax, eax
mov dword [esi + 0x3d14], eax
jne 0x1002a9db
lea eax, [esi + 0x15fb8]
push eax
call fcn.10030170
add esp, 4
test eax, eax
jne 0x1002a9ac
jmp 0x1002a9db
call fcn.1002a150
mov dword [esi + 0x3d14], eax
mov eax, dword [esi + 0x3d14]
test eax, eax
jne 0x1002ad65
mov ax, word [esi + 0x4e82]
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 + 0x4e80]
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 + 0x3c]
and ebx, 0xf
and ebp, 0x3f
shr cx, 0xb
test eax, eax
mov dword [esp + 0x14], ecx
jne 0x1002aa69
lea edi, [esi + 0x15fb8]
push edi
call fcn.10030170
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1002aa69
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1002aa69
push edi
push edi
call fcn.10030250
add esp, 8
lea edx, [esi + 0x457c]
mov ecx, 8
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
test edi, edi
je 0x1002abad
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 + 0x457c]
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 + 0x15fb8]
mov dword [edi + 0x12e], eax
mov edx, dword [esi + 0x4e88]
mov dword [edi + 6], edx
mov eax, dword [esi + 0x4e8c]
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.1001fb10
test eax, eax
mov ecx, 1
jne 0x1002ab29
mov word [edi + 0xe], ax
jmp 0x1002ab2d
mov word [edi + 0xe], cx
mov ax, word [esi + 0x4e7e]
mov word [edi + 0xa], ax
mov dx, word [esi + 0x4e7c]
mov word [edi + 0xc], dx
mov eax, dword [esi + 0x4e84]
mov dword [edi + 0x10], eax
mov dx, word [esi + 0x3d18]
mov word [edi], dx
mov ebp, dword [esi + 0x3d18]
mov eax, dword [esi + 0x4e9a]
inc ebp
and eax, 0x7fff
mov dword [esi + 0x3d18], ebp
mov dword [edi + 0x12a], eax
mov dl, byte [esi + 0x4e7c]
test cl, dl
je 0x1002ab87
or ah, 0x80
mov dword [edi + 0x12a], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1002ab99
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 + 0x4e8c]
cmp eax, 0xffffffff
je 0x1002ac17
xor ebp, ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ebp
jmp 0x1002ac3b
mov eax, dword [esi + 0x4ea6]
mov ecx, 0x20
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x4ea6]
mov edx, dword [esi + 0x4eaa]
call fcn.1003a5b0
mov dword [ebx + 0xc], eax
xor ebp, ebp
mov eax, dword [esi + 0x4e88]
cmp eax, 0xffffffff
je 0x1002ac4e
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ebp
jmp 0x1002ac95
cmp dword [esi + 0x4e8c], 0xffffffff
je 0x1002ac73
mov ecx, dword [esi + 0x4ea6]
mov dword [ebx + 0x10], ecx
mov eax, dword [esi + 0x4ea6]
mov edx, dword [esi + 0x4eaa]
mov ecx, 0x20
jmp 0x1002ac8d
mov edx, dword [esi + 0x4eae]
mov ecx, 0x20
mov dword [ebx + 0x10], edx
mov eax, dword [esi + 0x4eae]
mov edx, dword [esi + 0x4eb2]
call fcn.1003a5b0
mov dword [ebx + 0x14], eax
lea edi, [esi + 0x15fb8]
push 0x800
lea eax, [ebx + 0x46]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esi + 0x457c]
lea ecx, [ebx + 0x26]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x2f
push edi
call fcn.1001fb10
test eax, eax
mov ecx, 1
jne 0x1002acd3
mov word [ebx + 0x24], bp
jmp 0x1002acd7
mov word [ebx + 0x24], cx
mov dx, word [esi + 0x4e7e]
mov word [ebx + 0x20], dx
mov ax, word [esi + 0x4e7c]
mov word [ebx + 0x22], ax
mov edx, dword [esi + 0x4e84]
mov dword [ebx + 0x1c], edx
mov eax, dword [esi + 0x3d18]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x3d18]
inc eax
mov dword [esi + 0x3d18], eax
mov eax, dword [esi + 0x4e9a]
and eax, 0x7fff
mov dword [ebx + 0x18], eax
mov dl, byte [esi + 0x4e7c]
test cl, dl
je 0x1002ad2a
or ah, 0x80
mov dword [ebx + 0x18], eax
cmp dword [esp + 0x2c], ebp
je 0x1002ad37
or dword [ebx + 0x18], 0x10000
mov dword [ebx + 0x84a], ebp
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
pop ebp
xor eax, eax
pop ebx
pop edi
pop esi
add esp, 0x18
ret