Function at 0x1002bb20
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x10063c04]
sub esp, 0x18
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 0x1002bb48
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x18
ret
mov ebp, dword [esp + 0x2c]
lea edx, [esi + 0x348]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x8e]
cmp eax, ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jne 0x1002bbe9
cmp ecx, ebx
je 0x1002bbed
push edx
call fcn.1002ee40
add esp, 4
cmp eax, ebx
jne 0x1002c0bc
mov eax, dword [esi + 0x14f48]
cmp eax, ebx
je 0x1002bb9c
push eax
call fcn.10039f0f
add esp, 4
mov dword [esi + 0x14f48], ebx
mov eax, dword [esi + 0x15fac]
cmp eax, ebx
je 0x1002bbb5
push eax
call fcn.10039f0f
add esp, 4
mov dword [esi + 0x15fac], ebx
push ebx
call fcn.1002eff0
add esp, 4
cmp eax, ebx
mov dword [esi + 0x3d14], eax
jne 0x1002bc1f
cmp dword [esi + 0x4e70], ebx
jne 0x1002bbfa
mov dword [esi + 0x3d00], ebx
mov dword [esi + 0x3d04], ebx
call fcn.1002a150
mov dword [esi + 0x3d14], eax
jmp 0x1002bc00
cmp ecx, ebx
je 0x1002bb72
pop edi
pop esi
pop ebp
mov eax, 0x2f
pop ebx
add esp, 0x18
ret
mov dword [esi + 0x3d14], ebx
cmp edi, ebx
jl 0x1002c09c
mov eax, dword [esi + 0x4e3e]
dec eax
cmp edi, eax
jg 0x1002c09c
cmp dword [esi + 0x3d14], ebx
je 0x1002bc4d
mov ecx, dword [ebp + 0x28]
push ecx
push 2
push 0x72
call fcn.10033300
mov edx, dword [esi + 0x3d14]
add esp, 8
push eax
push edx
call fcn.10028a10
mov eax, dword [esi + 0x3d14]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x1002bcdc
mov dword [esi + 0x3d00], ebx
mov dword [esi + 0x3d04], ebx
or edi, 0xffffffff
mov dword [esi + 0x3d14], ebx
cmp edi, dword [esp + 0x2c]
je 0x1002bc9e
call fcn.1002a150
mov dword [esi + 0x3d14], eax
lea eax, [esi + 0x15fb8]
push eax
call fcn.10030170
add esp, 4
test eax, eax
jne 0x1002bc96
inc edi
cmp dword [esi + 0x3d14], ebx
je 0x1002bc71
cmp dword [esi + 0x3d14], ebx
je 0x1002bd59
mov ecx, dword [ebp + 0x28]
push ecx
push 2
push 0x82
call fcn.10033300
add esp, 8
push eax
push 0x19
call fcn.10028a10
add esp, 0xc
mov byte [esi + 0x14f64], 0
mov eax, 0x19
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, edi
cdq
mov dword [esi + 0x3d00], eax
mov dword [esi + 0x3d04], edx
call fcn.1002a150
lea edi, [esi + 0x15fb8]
mov dword [esi + 0x3d14], eax
push edi
call fcn.10030170
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x1002bd1c
cmp dword [esi + 0x40], ebx
je 0x1002bd1c
push edi
push edi
call fcn.10030250
add esp, 8
cmp dword [esi + 0x3d14], ebx
je 0x1002bd59
mov edx, dword [ebp + 0x28]
push edx
push 2
push 0x72
call fcn.10033300
add esp, 8
push eax
mov eax, dword [esi + 0x3d14]
push eax
call fcn.10028a10
mov eax, dword [esi + 0x3d14]
add esp, 0xc
mov byte [esi + 0x14f64], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ax, word [esi + 0x4e82]
lea edi, [esi + 0x457c]
mov bx, ax
mov ebp, eax
and eax, 0x1f
mov dword [esp + 0x1c], eax
mov ax, word [esi + 0x4e80]
mov cx, ax
mov edx, eax
and eax, 0x1f
shr cx, 0xb
shl eax, 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov ecx, 8
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
shr bx, 9
shr ebp, 5
shr edx, 5
add ebx, 0x50
and ebp, 0xf
and edx, 0x3f
test edi, edi
je 0x1002bedb
mov eax, dword [esp + 0x18]
and edx, 0xffff
and eax, 0xffff
push edx
push eax
mov eax, ebx
and eax, 0xffff
xor edx, edx
mov ecx, 0x64
and ebp, 0xffff
div ecx
mov eax, dword [esp + 0x24]
and eax, 0xffff
push edx
push eax
push ebp
lea ebp, [esi + 0x457c]
push str._02u__02u__02u___02u:_02u
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x30]
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]
push 0x2f
push ebx
call fcn.1001fb10
test eax, eax
mov ebx, 1
jne 0x1002be4d
mov word [edi + 0xe], ax
jmp 0x1002be51
mov word [edi + 0xe], bx
mov dx, word [esi + 0x4e7e]
lea ecx, [edi + 0x14]
mov word [edi + 0xa], dx
mov ax, word [esi + 0x4e7c]
push ebp
push ecx
mov word [edi + 0xc], ax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esi + 0x4e84]
mov ax, word [esp + 0x2c]
mov dword [edi + 0x10], edx
mov word [edi], ax
mov eax, dword [esi + 0x4e9a]
and eax, 0x7fff
mov dword [edi + 0x12a], eax
mov cl, byte [esi + 0x4e7c]
test bl, cl
je 0x1002bea7
or ah, 0x80
mov dword [edi + 0x12a], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002bec0
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x1002bec0
or dword [edi + 0x12a], 0x10000
mov dword [edi + 0x132], 0
mov byte [esi + 0x14f64], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
and edi, 0xffff
and edx, 0xffff
push edi
and eax, 0xffff
push edx
push eax
mov eax, dword [esp + 0x28]
and ebx, 0xffff
add ebx, 0x76c
and eax, 0xffff
push ebx
and ebp, 0xffff
push eax
push ebp
lea ebx, [esi + 0x457c]
push str._02u__02u__04u___02u:_02u:_02u
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [esp + 0x44]
add esp, 0x20
mov dword [ebp + 0x846], edi
lea edi, [esi + 0x15fb8]
push 0x800
lea ecx, [ebp + 0x46]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [ebp + 0x26]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0x4e8c]
cmp eax, 0xffffffff
je 0x1002bf6c
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], 0
jmp 0x1002bf8e
mov eax, dword [esi + 0x4ea6]
mov ecx, 0x20
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x4ea6]
mov edx, dword [esi + 0x4eaa]
call fcn.1003a5b0
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x4e88]
cmp eax, 0xffffffff
je 0x1002bfa5
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], 0
jmp 0x1002bfec
cmp dword [esi + 0x4e8c], 0xffffffff
je 0x1002bfca
mov ecx, dword [esi + 0x4ea6]
mov dword [ebp + 0x10], ecx
mov eax, dword [esi + 0x4ea6]
mov edx, dword [esi + 0x4eaa]
mov ecx, 0x20
jmp 0x1002bfe4
mov edx, dword [esi + 0x4eae]
mov ecx, 0x20
mov dword [ebp + 0x10], edx
mov eax, dword [esi + 0x4eae]
mov edx, dword [esi + 0x4eb2]
call fcn.1003a5b0
mov dword [ebp + 0x14], eax
push 0x2f
push edi
call fcn.1001fb10
test eax, eax
mov ebx, 1
jne 0x1002c005
xor ecx, ecx
mov word [ebp + 0x24], cx
jmp 0x1002c00b
mov word [ebp + 0x24], bx
xor ecx, ecx
mov ax, word [esi + 0x4e7e]
mov word [ebp + 0x20], ax
mov dx, word [esi + 0x4e7c]
mov word [ebp + 0x22], dx
mov eax, dword [esi + 0x4e84]
mov edx, dword [esp + 0x2c]
mov dword [ebp + 0x1c], eax
mov dword [ebp + 4], edx
mov eax, dword [esi + 0x4e9a]
and eax, 0x7fff
mov dword [ebp + 0x18], eax
mov dl, byte [esi + 0x4e7c]
test bl, dl
je 0x1002c04f
or ah, 0x80
mov dword [ebp + 0x18], eax
cmp dword [esp + 0x10], ecx
je 0x1002c061
cmp dword [esi + 0x3c], ecx
jne 0x1002c061
or dword [ebp + 0x18], 0x10000
mov dword [ebp + 0x84a], ecx
mov dword [ebp + 0x84e], ecx
mov dword [ebp + 0x852], ecx
mov dword [ebp + 0x856], ecx
mov dword [ebp + 0x85a], ecx
mov dword [ebp + 0x85e], ecx
mov dword [ebp + 0x862], ecx
mov byte [esi + 0x14f64], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
mov eax, dword [ebp + 0x28]
push eax
push 2
push 0x73
call fcn.10033300
add esp, 8
push eax
push 0x19
call fcn.10028a10
add esp, 0xc
mov eax, 0x19
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret