Function at 0x10003770
Capabilities:
Get thread local storage value
Query environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100045d1
push eax
mov eax, dword [0x100091a8]
mov dword fs:[0], esp
sub esp, 0x454
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x100039c7
lea eax, [esp + 0x48]
mov dword [esp + 8], ebx
push eax
push str.QMDispatch.QMLibrary
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
lea ecx, [esp + 8]
lea edx, [esp + 0x48]
push ecx
push 0x100059d8
push 7
push ebx
push edx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x100037e7
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x454]
mov dword fs:[0], ecx
add esp, 0x460
ret
lea edx, [esp + 4]
mov dword [esp + 4], ebx
mov ecx, dword [eax]
push edx
push 0x100059c8
push eax
call dword [ecx]
xor eax, eax
lea edx, [esp + 0x10]
mov dword [esp + 0x1a], eax
push edx
mov dword [esp + 0x22], eax
push 0x400
mov dword [esp + 0x2a], eax
lea edx, [esp + 0x1c]
mov word [esp + 0x2e], ax
mov eax, dword [esp + 0xc]
push 1
mov word [esp + 0x24], bx
mov dword [esp + 0x20], str.GetQMLibraryObject
mov ecx, dword [eax]
push edx
push 0x100059b8
push eax
mov dword [esp + 0x478], ebx
call dword [ecx + 0x14]
cmp eax, ebx
jl 0x10003858
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.100039e0
cmp word [esp + 0x18], 9
je 0x10003891
mov eax, dword [esp + 4]
mov dword [esp + 0x460], 0xffffffff
cmp eax, ebx
je 0x10003879
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x454]
mov dword fs:[0], ecx
add esp, 0x460
ret
mov eax, dword [esp + 0x20]
push edi
mov dword [0x100091a8], eax
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], bl
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x60]
push ecx
push str.QVMInstanceTlsIndex
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov word [esp + 0x3c], 3
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, ebx
mov byte [esp + 0x464], 1
mov dword [esp + 0x10], eax
pop edi
je 0x1000390e
mov eax, dword [ecx]
lea edx, [esp + 0xc]
push edx
push 0x100059c8
push ecx
call dword [eax]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x10], str.SetRunTimeParam
mov ecx, dword [eax]
push edx
push 0x400
lea edx, [esp + 0x18]
push 1
push edx
push 0x100059b8
push eax
mov byte [esp + 0x478], 2
call dword [ecx + 0x14]
cmp eax, ebx
jl 0x10003979
push ebx
lea eax, [esp + 0x3c]
push ebx
lea edx, [esp + 0x30]
push ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
push 1
push 0x400
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], ebx
mov ecx, dword [eax]
push 0x100059b8
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 8]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov esi, dword [0x100091a8]
cmp eax, ebx
mov byte [esp + 0x464], 1
je 0x100039a0
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 8]
mov dword [esp + 0x464], 0xffffffff
cmp eax, ebx
je 0x100039c4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x458]
pop ebx
mov dword fs:[0], ecx
add esp, 0x460
ret