Function at 0x10047630
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [0x100c7608]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10047657
lea eax, [esi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x88]
test edi, edi
jne 0x1004768c
mov eax, dword [ebx + 0x14]
lea edx, [edi + 2]
shr eax, 1
lea ecx, [edi + 0x6a]
and eax, 1
push eax
call fcn.1004f5b0
mov edx, eax
lea ecx, [edi + 0x2f]
call fcn.10044c90
add esp, 4
lea eax, [edi + 0x2f]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x18384]
push eax
lea eax, [esi + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10047717
mov ecx, ebx
call fcn.10046750
test eax, eax
je 0x100476e0
mov eax, dword [ebx + 0x14]
mov edx, 2
shr eax, 1
and eax, 1
push eax
lea ecx, [edx + 0x65]
call fcn.1004f5b0
mov edx, eax
mov ecx, 3
call fcn.10044c90
add esp, 4
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x18], 0
jne 0x10047717
mov eax, dword [ebx + 0x14]
mov edx, 2
shr eax, 1
and eax, 1
push eax
lea ecx, [edx + 0x69]
call fcn.1004f5b0
mov edx, eax
mov ecx, 2
call fcn.10044c90
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10046ec0
mov dword [esi + 0x60f4], eax
test eax, eax
jne 0x100478e8
mov eax, dword [esi + 0x8240]
cmp eax, 0xffffffff
je 0x10047739
xor ecx, ecx
jmp 0x10047745
mov eax, dword [esi + 0x825a]
mov ecx, dword [esi + 0x825e]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov eax, dword [esi + 0x823c]
cmp eax, 0xffffffff
je 0x1004775a
xor ecx, ecx
jmp 0x1004777d
cmp dword [esi + 0x8240], 0xffffffff
je 0x10047771
mov eax, dword [esi + 0x825a]
mov ecx, dword [esi + 0x825e]
jmp 0x1004777d
mov eax, dword [esi + 0x8262]
mov ecx, dword [esi + 0x8266]
push 0x800
mov dword [edi + 0xc], eax
lea ebx, [esi + 0x1a404]
push ebx
lea eax, [edi + 0x42]
mov dword [edi + 0x10], ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, ebx
test ecx, ecx
je 0x100477ca
movzx eax, word [ecx]
test ax, ax
je 0x100477ca
mov edx, eax
lea esp, [esp]
cmp dx, 0x5c
je 0x100477cc
cmp dx, 0x2f
je 0x100477cc
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x100477b0
xor ecx, ecx
xor eax, eax
test ecx, ecx
mov ecx, ebx
setne al
mov word [edi + 0x20], ax
call fcn.10050770
test eax, eax
je 0x100477f5
mov eax, dword [esi + 0x824e]
test al, 0x18
jne 0x100477f5
or eax, 0x10
mov dword [esi + 0x824e], eax
movzx eax, word [esi + 0x8232]
mov word [edi + 0x1c], ax
movzx eax, word [esi + 0x8230]
mov word [edi + 0x1e], ax
mov eax, dword [esi + 0x8238]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x60f8]
mov dword [edi], eax
mov eax, dword [esi + 0x824e]
inc dword [esi + 0x60f8]
and eax, 0x7fff
mov dword [edi + 0x14], eax
test byte [esi + 0x8230], 1
je 0x1004784a
or eax, 0x8000
mov ecx, esi
mov dword [edi + 0x14], eax
call fcn.100479a0
jmp 0x1004784c
xor eax, eax
mov dword [edi + 0x3e], eax
lea ebx, [edi + 0x22]
movzx ecx, word [esi + 0x822e]
movzx eax, word [esi + 0x822c]
shl ecx, 0x10
add ecx, eax
mov dword [edi + 0x3a], ecx
cmp word [esi + 0x1fc10], 0xa
jne 0x100478b0
mov eax, dword [esi + 0x1fc2c]
mov ecx, dword [esi + 0x1fc30]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov eax, dword [esi + 0x1fc1c]
mov ecx, dword [esi + 0x1fc20]
mov dword [edi + 0x2a], eax
mov dword [edi + 0x2e], ecx
mov eax, dword [esi + 0x1fc24]
mov ecx, dword [esi + 0x1fc28]
mov dword [edi + 0x32], eax
xor eax, eax
mov dword [edi + 0x36], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
movzx eax, word [esi + 0x8234]
push eax
movzx eax, word [esi + 0x8236]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
push ebx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [edi + 0x2a], eax
mov dword [edi + 0x2e], ecx
mov dword [edi + 0x32], eax
xor eax, eax
mov dword [edi + 0x36], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret