Function at 0x469190
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov eax, dword [0x7be2ac]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov word [ebp - 0x26], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [0x7be260]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x10]
and eax, 0xf405
je 0x469204
lea eax, [ebx + 0x10]
push eax
call fcn.004a45e0
pop ecx
jmp 0x46920b
mov dword [ebx + 0x10], 0
add dword [0x7be298], 1
lea eax, [ebx + 0x13e4]
mov edx, dword [eax]
test edx, edx
je 0x46927f
movzx ecx, word [ebp + 8]
lea edx, [edx*4 - 4]
mov edx, dword [ebx + edx + 0x12e4]
lea edx, [edx + ecx + 2]
neg edx
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edx*4]
mov dword [ebp - 0x10], edx
mov edx, dword [edx]
and edx, 0x100
je 0x46927f
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x14]
mov eax, dword [eax]
lea eax, [eax*4 - 4]
mov eax, dword [ebx + eax + 0x13e8]
cmp edx, eax
jne 0x46927f
lea eax, [ebx + 0x13e4]
mov edx, dword [eax]
dec edx
mov dword [eax], edx
movzx eax, word [ebp + 8]
mov edx, dword [ebx + edx*4 + 0x12e4]
add eax, edx
mov word [ebp + 8], ax
cmp dword [ebp - 0x14], 0
je 0x46928d
call fcn.00533d70
mov dword [ebp - 0x2c], eax
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004a8d70
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov eax, dword [0x7cd4c8]
mov dword [ebp - 0x24], eax
mov dword [0x7cd4c8], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x2000
je 0x4692db
mov eax, dword [ebp - 8]
push eax
call fcn.004a0990
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x1000
je 0x469302
mov eax, dword [ebp - 4]
lea edx, [0x7be268]
cmp eax, edx
jne 0x469302
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
jmp 0x469901
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x1000
je 0x469339
push 0x696be5
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.00534750
add esp, 8
test eax, eax
jne 0x469339
lea eax, [0x7be268]
mov dword [ebp - 4], eax
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
jmp 0x469901
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x1000
je 0x469370
push str.EXEC
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.00534750
add esp, 8
test eax, eax
jne 0x469370
lea eax, [0x7be268]
mov dword [ebp - 4], eax
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
jmp 0x469901
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 1
je 0x4693b8
push str.EXEC
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.00534750
add esp, 8
test eax, eax
jne 0x4693b8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x469901
mov eax, dword [ebp - 8]
mov edx, dword [eax]
and edx, 0x8000
je 0x4693d4
mov eax, dword [eax + 8]
movzx eax, word [eax + 0xc]
test eax, eax
jne 0x4694ad
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x8000
je 0x4693ef
movzx eax, word [0x7beb24]
test eax, eax
jne 0x4694ad
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x1000
je 0x46940a
movzx eax, word [0x7beb26]
test eax, eax
jne 0x4694ad
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x400
je 0x469425
movzx eax, word [0x7beb28]
test eax, eax
jne 0x4694ad
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x20
je 0x46943e
movzx eax, word [0x7beb2a]
test eax, eax
jne 0x4694ad
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x80
je 0x469455
movzx eax, word [0x7beb2c]
test eax, eax
jne 0x4694ad
mov eax, dword [ebp - 8]
mov eax, dword [eax]
test eax, eax
jne 0x469469
movzx eax, word [0x7beb2e]
test eax, eax
jne 0x4694ad
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, edx
and ecx, 0x3a
jne 0x469485
and edx, 0x400
je 0x469490
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x469490
movzx eax, word [0x7beb30]
test eax, eax
jne 0x4694ad
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 1
je 0x469641
movzx eax, word [0x7beb32]
test eax, eax
je 0x469641
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00487720
add esp, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x60]
mov edx, eax
test edx, edx
je 0x4694f9
movzx eax, word [eax + 0xe]
and eax, 0x400
je 0x4694f9
mov eax, dword [ebp - 8]
push eax
call fcn.0048ace0
pop ecx
mov word [ebp - 0x26], ax
movzx eax, word [ebp - 0x26]
push eax
call fcn.0048ba10
pop ecx
movzx eax, word [ebp + 8]
cmp eax, 1
jne 0x469518
mov eax, dword [ebp - 0xc]
lea edx, [0x48b770]
cmp eax, edx
jne 0x469518
lea eax, [0x48b7d0]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
and edx, 0x8000
je 0x469901
mov eax, dword [eax + 8]
cmp word [eax + 0xc], 0
je 0x469901
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
movzx eax, word [eax + 0xe]
test eax, eax
je 0x469901
lea edi, [ebp - 0x5c]
lea esi, [0x696874]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 0xc]
mov word [ebp - 0x5e], ax
mov eax, dword [ebp - 0x10]
movzx edx, word [ebp - 0x5e]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004a4960
add esp, 8
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.004a44a0
add esp, 8
mov eax, dword [ebp - 8]
mov edx, dword [eax]
and edx, 0x8000
je 0x469901
mov eax, dword [eax + 8]
cmp word [eax + 0xc], 0
je 0x469901
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x4695ee
push 2
call fcn.0049b580
pop ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x10]
mov word [eax], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
movzx eax, word [eax]
inc eax
mov word [ebp - 0x60], ax
movzx eax, word [ebp - 0x60]
inc eax
add eax, eax
push eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + 0x10]
mov dword [ebp - 0x64], eax
mov edx, dword [eax]
push edx
call fcn.0049b5d0
add esp, 8
mov edx, dword [ebp - 0x64]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
mov dx, word [ebp - 0x60]
mov word [eax], dx
movzx eax, word [ebp - 0x60]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x10]
mov cx, word [ebp - 0x5e]
mov word [edx + eax*2], cx
jmp 0x469901
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 4
je 0x469901
movzx eax, word [0x7beb34]
test eax, eax
je 0x469681
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00487720
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x469901
movzx eax, word [ebp + 8]
cmp eax, 1
jne 0x469747
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movsx eax, byte [eax]
cmp eax, 0x5f
jne 0x4696f6
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov edx, eax
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4696ad
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004a4df0
add esp, 0xc
mov edx, dword [ebx + 4]
mov edx, dword [edx - 4]
push edx
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call fcn.004936b0
add esp, 0x10
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.004a4960
add esp, 8
jmp 0x469901
movzx eax, word [0x7beb34]
test eax, eax
je 0x469728
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00487720
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x469901
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
push 0x696ebb
movzx eax, word [ebp + 8]
push eax
call fcn.00469090
add esp, 0x10
jmp 0x469901
movzx eax, word [ebp + 8]
test eax, eax
jne 0x4698b9
push 0x696bd6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.00534750
add esp, 8
test eax, eax
jne 0x469780
push 0x696ebb
lea eax, [ebx + 0x10]
push eax
call fcn.004a4aa0
add esp, 8
jmp 0x469901
push 0x696bcf
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.00534750
add esp, 8
test eax, eax
jne 0x4697aa
push 0
lea eax, [ebx + 0x10]
push eax
call fcn.004a0410
add esp, 8
jmp 0x469901
push 0x696bca
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.00534750
add esp, 8
test eax, eax
jne 0x4697d6
mov eax, dword [ebp - 8]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.00494ff0
add esp, 8
jmp 0x469901
push 0x696bc3
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.00534750
add esp, 8
test eax, eax
jne 0x469802
mov eax, dword [ebp - 8]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.004950e0
add esp, 8
jmp 0x469901
movzx eax, word [0x7beb34]
test eax, eax
je 0x469834
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00487720
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x469901
mov dword [ebp - 0x60], 0
lea edi, [ebp - 0x5c]
lea esi, [0x696894]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, eax
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x469855
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004a4df0
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00493f40
add esp, 0xc
test eax, eax
je 0x46989d
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00494430
add esp, 0xc
jmp 0x469901
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
push 0x696ebb
movzx eax, word [ebp + 8]
push eax
call fcn.00469090
add esp, 0x10
jmp 0x469901
movzx eax, word [0x7beb34]
test eax, eax
je 0x4698e7
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00487720
add esp, 0x18
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x469901
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
push 0x696ebb
movzx eax, word [ebp + 8]
push eax
call fcn.00469090
add esp, 0x10
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x469b90
cmp dword [ebp - 0x14], 0
je 0x469918
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x3c], eax
cmp dword [0x7be264], 0
je 0x46995c
call fcn.004aabf0
test eax, eax
jl 0x46995c
lea eax, str.source_vmhvm.c
mov dword [0x7c0028], eax
mov dword [0x7c002c], 0x1c65
mov dword [0x7c0030], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
push str.Calling:__s
call fcn.004aacf0
add esp, 8
cmp dword [ebp - 0x30], 0
je 0x4699fd
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4699d5
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x40]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x40]
movsx eax, word [eax + 4]
and eax, 0x2000
je 0x46998d
mov eax, dword [ebp - 0x40]
movsx eax, word [eax + 4]
and eax, 0x100
je 0x4699af
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
call fcn.0045bae0
add esp, 8
jmp 0x4699b2
call dword [ebp - 0xc]
mov eax, dword [ebp - 0x40]
movsx eax, word [eax + 4]
and eax, 0x2000
je 0x469a00
mov eax, dword [ebp - 0x40]
push eax
call fcn.0049b640
pop ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0x14], edx
jmp 0x469a00
mov eax, dword [ebp - 8]
push eax
call fcn.004871e0
pop ecx
mov dword [ebp - 0x44], eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x44]
push eax
movzx eax, word [ebp + 8]
push eax
call fcn.00469090
add esp, 0x10
jmp 0x469a00
call dword [ebp - 0xc]
mov eax, dword [ebp - 4]
lea edx, [0x7be268]
cmp eax, edx
je 0x469a7d
cmp dword [ebp - 0x38], 0
je 0x469a7d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x469a7d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
movzx eax, word [eax]
dec eax
mov word [ebp - 0x3e], ax
cmp word [ebp - 0x3e], 0
je 0x469a66
movzx eax, word [ebp - 0x3e]
inc eax
add eax, eax
push eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + 0x10]
mov dword [ebp - 0x44], eax
mov edx, dword [eax]
push edx
call fcn.0049b5d0
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
mov dx, word [ebp - 0x3e]
mov word [eax], dx
jmp 0x469a7d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
push eax
call fcn.0049b640
pop ecx
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x469a98
call fcn.00533d70
sub eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0048b9f0
add esp, 8
cmp word [ebp - 0x26], 0
je 0x469aaa
movzx eax, word [ebp - 0x26]
push eax
call fcn.0048bb50
pop ecx
cmp dword [ebp - 0x34], 0
je 0x469c57
cmp word [ebx + 0x44], 0
jne 0x469c57
mov eax, dword [ebx + 0x10]
and eax, 0x8000
je 0x469ae1
mov eax, dword [ebx + 0x18]
cmp word [eax + 0xc], 0
je 0x469ae1
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
cmp edx, eax
je 0x469c57
lea eax, [ebx + 0x10]
push eax
call fcn.0046a8b0
pop ecx
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
push 0
push 0x645
push 0x33
call fcn.00492ab0
add esp, 0x1c
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x469b30
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x469b3c
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
lea eax, [ebx + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [eax], edx
mov eax, edx
mov edx, dword [ebx]
cmp eax, edx
jae 0x469b61
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x469b7b
push eax
call fcn.004a4540
pop ecx
push eax
call fcn.0049f7d0
pop ecx
jmp 0x469c57
mov eax, dword [ebp - 8]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.004a44a0
add esp, 8
jmp 0x469c57
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 4
jne 0x469c57
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, eax
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x469ba8
cmp eax, 4
jae 0x469bbd
mov dword [ebp - 0x40], 4
jmp 0x469bd1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, eax
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x469bc7
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
push 0x696bd6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.00532010
add esp, 0xc
test eax, eax
jne 0x469c08
mov eax, dword [ebp - 8]
push eax
call fcn.004871e0
pop ecx
mov dword [ebp - 0x44], eax
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.004a4aa0
add esp, 8
jmp 0x469c57
push 6
push 0x696bcf
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call fcn.00532010
add esp, 0xc
test eax, eax
jne 0x469c31
push 0
lea eax, [ebx + 0x10]
push eax
call fcn.004a0410
add esp, 8
jmp 0x469c57
mov eax, dword [ebp - 8]
push eax
call fcn.004871e0
pop ecx
mov dword [ebp - 0x44], eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x44]
push eax
movzx eax, word [ebp + 8]
push eax
call fcn.00469090
add esp, 0x10
cmp dword [0x7cd4c8], 0
je 0x469c65
call fcn.0046a370
mov eax, dword [ebp - 0x24]
mov dword [0x7cd4c8], eax
sub dword [0x7be298], 1
lea eax, [ebp - 0x1c]
push eax
call fcn.004a8e00
pop ecx
mov eax, dword [ebp - 0x20]
mov dword [0x7be2ac], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret