Function at 0x463440
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5296dc]
sub esp, 0x18
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x463462
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 0x4634ce
test ecx, ecx
je 0x4634d2
lea eax, [esi + 0x14fac]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x463525
push edi
call fcn.004625d0
add esp, 4
test eax, eax
je 0x4634f8
mov ecx, dword [edi + 0x28]
push ecx
push 2
push 0x67
call fcn.0046cff0
add esp, 8
push eax
push 3
call fcn.00461490
add esp, 0xc
mov eax, 3
pop edi
pop esi
add esp, 0x18
ret
test ecx, ecx
je 0x463485
mov ecx, dword [edi + 0x28]
push ecx
push 2
push 0x6a
call fcn.0046cff0
add esp, 8
push eax
push 0x2f
call fcn.00461490
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
add esp, 0x18
ret
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x463525
mov edx, dword [edi + 0x28]
push edx
push 2
push 0x6b
call fcn.0046cff0
add esp, 8
push eax
push 2
call fcn.00461490
add esp, 0xc
mov eax, 2
pop edi
pop esi
add esp, 0x18
ret
mov eax, dword [esi + 0x44]
test eax, eax
je 0x463550
call fcn.00462ce0
test eax, eax
mov dword [esi + 0x3d1c], eax
jne 0x46355b
lea eax, [esi + 0x16000]
push eax
call fcn.00469bb0
add esp, 4
test eax, eax
jne 0x46352c
jmp 0x46355b
call fcn.00462ce0
mov dword [esi + 0x3d1c], eax
mov eax, dword [esi + 0x3d1c]
test eax, eax
jne 0x4638fc
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 0x4635e9
lea edi, [esi + 0x16000]
push edi
call fcn.00469bb0
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4635e9
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4635e9
push edi
push edi
call fcn.00469c90
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 0x46372d
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.0046d140
test eax, eax
mov ecx, 1
jne 0x4636a9
mov word [edi + 0xe], ax
jmp 0x4636ad
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 0x463707
or ah, 0x80
mov dword [edi + 0x12a], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x463719
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 0x463797
xor ebp, ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ebp
jmp 0x4637bb
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.004b56a0
mov dword [ebx + 0xc], eax
xor ebp, ebp
mov eax, dword [esi + 0x4e94]
cmp eax, 0xffffffff
je 0x4637ce
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ebp
jmp 0x463815
cmp dword [esi + 0x4e98], 0xffffffff
je 0x4637f3
mov ecx, dword [esi + 0x4eb2]
mov dword [ebx + 0x10], ecx
mov eax, dword [esi + 0x4eb2]
mov edx, dword [esi + 0x4eb6]
mov ecx, 0x20
jmp 0x46380d
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.004b56a0
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.0046d140
test eax, eax
mov ecx, 1
jne 0x463853
mov word [ebx + 0x24], bp
jmp 0x463857
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 0x4638aa
or ah, 0x80
mov dword [ebx + 0x18], eax
cmp dword [esp + 0x2c], ebp
je 0x4638b7
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