Function at 0x10034a00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c6c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x80]
mov dword [ebp - 0x34], ebx
mov eax, dword [esi + 8]
movq xmm0, qword [esi]
mov dword [ebp - 0x38], eax
mov al, 1
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x4c], esi
movq qword [ebp - 0x40], xmm0
mov byte [ebp - 0xd], al
cmp byte [ebp + 0xc], bl
je 0x10034d6e
mov ecx, dword [edi + 0x7c]
call fcn.10005140
mov ecx, dword [edi + 0x7c]
mov dword [edi + 0x6c], eax
call fcn.10005d20
mov dword [edi + 0xcc], eax
cmp byte [edi + 0xbc], bl
jne 0x10034bf8
mov ecx, dword [edi + 0x7c]
call fcn.10005240
mov dword [ebp - 0x44], eax
test eax, eax
je 0x10034a94
cmp eax, 7
jne 0x10034aa9
cmp eax, 9
jne 0x10034bf1
cmp byte [edi + 0xb0], bl
jne 0x10034bf1
mov ecx, dword [edi + 0x7c]
call fcn.10005ca0
test al, al
jne 0x10034ac9
lea ecx, [esi + 8]
mov edx, esi
push ecx
mov ecx, dword [edi + 0x7c]
lea eax, [esi + 4]
push eax
call fcn.10004eb0
jmp 0x10034aeb
mov ecx, dword [ebp + 8]
lea edi, [esi + 8]
add esi, 4
mov ecx, dword [ecx + 0x7c]
call fcn.10005460
push edi
push esi
mov esi, dword [ebp - 0x4c]
mov ecx, eax
mov edx, esi
call fcn.10006570
mov edi, dword [ebp + 8]
movss xmm0, dword [esi]
add esp, 8
ucomiss xmm0, dword [ebp - 0x40]
lahf
test ah, 0x44
jp 0x10034b28
movss xmm0, dword [esi + 4]
ucomiss xmm0, dword [ebp - 0x3c]
lahf
test ah, 0x44
jp 0x10034b28
movss xmm0, dword [esi + 8]
ucomiss xmm0, dword [ebp - 0x38]
lahf
test ah, 0x44
jp 0x10034b28
mov al, byte [edi + 0xbd]
mov byte [ebp - 0xd], al
jmp 0x10034c10
movss xmm0, dword [esi]
mov eax, dword [ebp - 0x44]
movss dword [ebp - 0x40], xmm0
movss xmm0, dword [esi + 4]
movss dword [ebp - 0x3c], xmm0
movss xmm0, dword [esi + 8]
movss dword [ebp - 0x38], xmm0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
cmp eax, 1
jne 0x10034b6b
mov ecx, dword [edi + 0x7c]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
call fcn.100052c0
jmp 0x10034b8f
cmp eax, 2
je 0x10034b75
cmp eax, 3
jne 0x10034b92
mov ecx, dword [edi + 0x7c]
call fcn.10005460
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
mov ecx, eax
call fcn.10006a10
add esp, 8
lea eax, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x74], eax
call fcn.10041600
mov ecx, dword [ebp - 0x20]
comiss xmm0, dword [ecx + 0x94]
jbe 0x10034c0d
movss xmm1, dword [ecx + 0x98]
comiss xmm1, xmm0
mov al, byte [ebp - 0xd]
jbe 0x10034c10
movss xmm1, dword [ecx + 0x8c]
movss xmm0, dword [ebp - 0x1c]
mulss xmm0, xmm1
movss dword [ebp - 0x34], xmm0
movss xmm0, dword [ebp - 0x18]
mulss xmm0, xmm1
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0x14]
mulss xmm0, xmm1
movss dword [ebp - 0x2c], xmm0
jmp 0x10034c10
xor al, al
mov byte [ebp - 0xd], al
jmp 0x10034c10
lea ecx, [esi + 8]
mov edx, esi
push ecx
mov ecx, dword [edi + 0x7c]
lea eax, [esi + 4]
push eax
call fcn.10005970
add esp, 8
mov al, byte [ebp - 0xd]
cmp dword [edi + 0x54], ebx
lea edx, [edi + 0x54]
je 0x10034ca2
mov eax, dword [0x10059264]
mov ecx, dword [eax]
add ecx, 0xa8
push ecx
push edx
push dword [edx]
call fcn.1000ce40
mov esi, eax
test esi, esi
setne al
test al, al
je 0x10034c9a
mov edi, dword [esi + 0xc]
mov ecx, edi
push ecx
movss xmm0, dword [edi + 0x38]
movss xmm2, dword [edi + 0x1c]
movss xmm1, dword [edi + 0x18]
mov edi, dword [ebp + 8]
movss xmm3, dword [ecx + 0x20]
movss dword [esp], xmm0
mov ecx, dword [edi + 0x7c]
call fcn.10005570
mov eax, dword [esi + 0xc]
add esp, 4
cmp byte [eax + 0x3c], bl
je 0x10034c91
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
add ecx, 0xb8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 2
push eax
call fcn.1003db80
mov eax, dword [esi + 8]
mov dword [edi + 0xc4], eax
mov dword [edi + 0x54], ebx
jmp 0x10034d65
cmp dword [edi + 0x58], ebx
lea edx, [edi + 0x58]
je 0x10034d6e
mov eax, dword [0x10059264]
mov ecx, dword [eax]
add ecx, 0x108
push ecx
push edx
push dword [edx]
call fcn.1000ce40
mov esi, eax
test esi, esi
setne al
test al, al
je 0x10034d5e
mov ebx, dword [esi + 0xc]
sub esp, 0x14
mov edi, dword [ebp + 8]
movss xmm0, dword [ebx + 0x44]
movss xmm1, dword [ebx + 0x18]
movss xmm4, dword [ebx + 0x14]
movss xmm5, dword [ebx + 0x10]
movss xmm6, dword [ebx + 0x28]
movss xmm3, dword [ebx + 0x24]
movss xmm2, dword [ebx + 0x20]
mov edx, dword [ebx + 0x50]
mov ecx, dword [edi + 0x7c]
movss dword [esp + 0x10], xmm0
movss dword [esp + 0xc], xmm1
movss dword [esp + 8], xmm4
movss dword [esp + 4], xmm5
movss dword [esp], xmm6
call fcn.100056d0
mov eax, dword [esi + 0xc]
add esp, 0x14
cmp byte [eax + 0x48], 0
je 0x10034d52
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x44], eax
add ecx, 0xb8
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 3
push eax
call fcn.1003db80
mov eax, dword [esi + 8]
mov ebx, dword [ebp - 0x24]
mov dword [edi + 0xc8], eax
mov dword [edi + 0x58], 0
mov al, byte [ebp - 0xd]
lea esi, [edi + 0x80]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
test al, al
mov eax, dword [0x10059264]
push ecx
push edi
mov ecx, dword [eax + 4]
je 0x10034da2
call fcn.10014a30
jmp 0x10034da7
call fcn.10014c40
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
sete al
test al, al
jne 0x100354c1
movss xmm0, dword [0x10052f14]
xor edx, edx
call fcn.10011fc0
movaps xmm2, xmm0
lea ecx, [ebp - 0x34]
movaps xmm1, xmm2
movss dword [ebp - 0x44], xmm2
mulss xmm1, dword [0x10052f00]
mov dword [ebp + 8], ecx
xor eax, eax
movss xmm0, dword [ecx]
call fcn.10011fc0
comiss xmm1, xmm0
jb 0x10034e0a
inc eax
add ecx, 4
cmp eax, 3
jl 0x10034de2
mov ecx, dword [ebp + 8]
inc edx
add ecx, 0xc
mov dword [ebp + 8], ecx
cmp edx, 1
jl 0x10034de0
jmp 0x10034e35
movss xmm0, dword [esi]
addss xmm0, dword [ebp - 0x34]
movss dword [esi], xmm0
movss xmm0, dword [esi + 4]
addss xmm0, dword [ebp - 0x30]
movss dword [esi + 4], xmm0
movss xmm0, dword [esi + 8]
addss xmm0, dword [ebp - 0x2c]
movss dword [esi + 8], xmm0
mov eax, dword [0x10059264]
mov eax, dword [eax]
mov esi, dword [eax + 0x150]
cmp esi, dword [eax + 0x154]
je 0x1003545d
nop
cmp byte [ebp - 0xd], 0
je case.0x10034e65.1
mov ecx, dword [esi]
cmp ecx, 6
ja case.0x10034e65.1
jmp dword [ecx*4 + 0x100354dc]
cmp dword [eax + 0xe0], 0
je 0x10034f1a
push 0
lea eax, [ebp - 0x80]
or ebx, 1
push eax
lea ecx, [edi + 0xd0]
call fcn.10014f70
mov ecx, eax
call fcn.10014f10
test al, al
je 0x10034f1a
mov eax, dword [edi + 0x7c]
push eax
push str.IsPlayerNPC__d_
mov dword [ebp - 0x24], eax
call fcn.100034d0
mov eax, dword [0x10059500]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x10034ee8
cmp eax, fcn.100041f0
jne 0x10034ef2
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10034ee3
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x10034ee8
mov eax, dword [ebp + 8]
jmp 0x10034ef2
mov ecx, str.IsPlayerNPC
call fcn.10004200
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0x54]
push ecx
push 0x100595e0
mov dword [0x10059500], eax
mov dword [ebp - 0x54], 4
call eax
add esp, 8
test eax, eax
jne 0x10034f1a
mov al, 1
jmp 0x10034f1c
xor al, al
test bl, 1
je 0x10034f24
and ebx, 0xfffffffe
test al, al
je case.0x10034e65.1
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x80], 0
je 0x10034f47
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.10039250
jmp case.0x10034e65.1
lea ecx, [ebp - 0x1c]
push ecx
push edi
mov ecx, eax
call fcn.10038280
jmp case.0x10034e65.1
cmp dword [eax + 0xb0], 0
je 0x10034f87
push 2
lea eax, [ebp - 0x88]
or ebx, 2
push eax
lea ecx, [edi + 0xd0]
call fcn.10014f70
mov ecx, eax
call fcn.10014f10
test al, al
je 0x10034f87
mov al, 1
jmp 0x10034f89
xor al, al
test bl, 2
je 0x10034f91
and ebx, 0xfffffffd
test al, al
je case.0x10034e65.1
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.10036730
jmp case.0x10034e65.1
cmp dword [eax + 0x110], 0
je 0x10034fda
push 3
lea eax, [ebp - 0x90]
or ebx, 4
push eax
lea ecx, [edi + 0xd0]
call fcn.10014f70
mov ecx, eax
call fcn.10014f10
test al, al
je 0x10034fda
mov al, 1
jmp 0x10034fdc
xor al, al
test bl, 4
je 0x10034fe4
and ebx, 0xfffffffb
test al, al
je case.0x10034e65.1
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.1003a790
jmp case.0x10034e65.1
cmp dword [eax + 0xc8], 0
je 0x100350af
push 4
lea eax, [ebp - 0x98]
or ebx, 8
push eax
lea ecx, [edi + 0xd0]
call fcn.10014f70
mov ecx, eax
call fcn.10014f10
test al, al
je 0x100350af
mov eax, dword [edi + 0x7c]
push eax
push str.IsPlayerNPC__d_
mov dword [ebp - 0x24], eax
call fcn.100034d0
mov eax, dword [0x10059500]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x1003507d
cmp eax, fcn.100041f0
jne 0x10035087
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10035078
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x1003507d
mov eax, dword [ebp + 8]
jmp 0x10035087
mov ecx, str.IsPlayerNPC
call fcn.10004200
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x5c]
push ecx
push 0x100595e0
mov dword [0x10059500], eax
mov dword [ebp - 0x5c], 4
call eax
add esp, 8
test eax, eax
jne 0x100350af
mov al, 1
jmp 0x100350b1
xor al, al
test bl, 8
je 0x100350b9
and ebx, 0xfffffff7
test al, al
je case.0x10034e65.1
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x80], 0
je 0x100350dc
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.100376c0
jmp case.0x10034e65.1
lea ecx, [ebp - 0x1c]
push ecx
push edi
mov ecx, eax
call fcn.10036b30
jmp case.0x10034e65.1
cmp dword [eax + 0x128], 0
je 0x1003519e
push 5
lea eax, [ebp - 0xa0]
or ebx, 0x10
push eax
lea ecx, [edi + 0xd0]
call fcn.10014f70
mov ecx, eax
call fcn.10014f10
test al, al
je 0x1003519e
mov eax, dword [edi + 0x7c]
push eax
push str.IsPlayerNPC__d_
mov dword [ebp - 0x24], eax
call fcn.100034d0
mov eax, dword [0x10059500]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x1003516c
cmp eax, fcn.100041f0
jne 0x10035176
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10035167
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x1003516c
mov eax, dword [ebp + 8]
jmp 0x10035176
mov ecx, str.IsPlayerNPC
call fcn.10004200
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x64]
push ecx
push 0x100595e0
mov dword [0x10059500], eax
mov dword [ebp - 0x64], 4
call eax
add esp, 8
test eax, eax
jne 0x1003519e
mov al, 1
jmp 0x100351a0
xor al, al
test bl, 0x10
je 0x100351a8
and ebx, 0xffffffef
test al, al
je case.0x10034e65.1
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x80], 0
je 0x100351cb
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.1003b6c0
jmp case.0x10034e65.1
lea ecx, [ebp - 0x1c]
push ecx
push edi
mov ecx, eax
call fcn.1003aba0
jmp case.0x10034e65.1
cmp dword [eax + 0x98], 0
je 0x1003520b
push 6
lea eax, [ebp - 0xa8]
or ebx, 0x20
push eax
lea ecx, [edi + 0xd0]
call fcn.10014f70
mov ecx, eax
call fcn.10014f10
test al, al
je 0x1003520b
mov al, 1
jmp 0x1003520d
xor al, al
test bl, 0x20
je 0x10035215
and ebx, 0xffffffdf
test al, al
je case.0x10034e65.1
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x3727c5ac
push eax
lea ecx, [ebp - 0x34]
call fcn.100402e0
test al, al
jne 0x1003525b
movss xmm0, dword [ebp - 0x40]
movss dword [edi + 0x80], xmm0
movss xmm0, dword [ebp - 0x3c]
movss dword [edi + 0x84], xmm0
movss xmm0, dword [ebp - 0x38]
movss dword [edi + 0x88], xmm0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.100364e0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x3727c5ac
push eax
lea ecx, [ebp - 0x34]
call fcn.100402e0
test al, al
jne case.0x10034e65.1
movss xmm0, dword [edi + 0x80]
lea eax, [edi + 0x80]
addss xmm0, dword [ebp - 0x34]
movss dword [eax], xmm0
movss xmm0, dword [eax + 4]
addss xmm0, dword [ebp - 0x30]
movss dword [eax + 4], xmm0
movss xmm0, dword [eax + 8]
addss xmm0, dword [ebp - 0x2c]
movss dword [eax + 8], xmm0
cmp byte [ebp + 0xc], 0
je 0x10035442
mov eax, dword [esi]
sub eax, 1
je 0x100353d2
sub eax, 6
jne 0x10035442
mov eax, dword [0x10059264]
mov eax, dword [eax]
cmp dword [eax + 0x80], 0
je 0x100353b2
push 7
lea eax, [ebp - 0xb0]
or ebx, 0x80
push eax
lea ecx, [edi + 0xd0]
call fcn.10014f70
mov byte [ebp - 4], 2
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp + 8], eax
cmp edx, 8
jae 0x10035496
mov ecx, edx
mov byte [ebp - 4], 0
and ecx, 0x1f
shr edx, 5
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + 8]
test dword [ecx + edx*4], eax
je 0x100353b2
mov eax, dword [edi + 0x7c]
push eax
push str.IsPlayerNPC__d_
mov dword [ebp - 0x24], eax
call fcn.100034d0
mov eax, dword [0x10059500]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x10035380
cmp eax, fcn.100041f0
jne 0x1003538a
push str.SAMGDK_NATIVE_SEARCH_ALWAYS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x1003537b
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x10035380
mov eax, dword [ebp + 8]
jmp 0x1003538a
mov ecx, str.IsPlayerNPC
call fcn.10004200
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x6c]
push ecx
push 0x100595e0
mov dword [0x10059500], eax
mov dword [ebp - 0x6c], 4
call eax
add esp, 8
test eax, eax
jne 0x100353b2
mov al, 1
jmp 0x100353b4
xor al, al
test bl, bl
jns 0x100353be
and ebx, 0xffffff7f
test al, al
je 0x10035442
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.10036030
jmp 0x10035442
mov eax, dword [0x10059264]
mov eax, dword [eax]
cmp dword [eax + 0xf8], 0
je 0x1003542a
push 1
lea eax, [ebp - 0x74]
or ebx, 0x40
push eax
lea ecx, [edi + 0xd0]
call fcn.10014f70
mov byte [ebp - 4], 1
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp + 8], eax
cmp edx, 8
jae 0x10035496
mov ecx, edx
mov byte [ebp - 4], 0
and ecx, 0x1f
shr edx, 5
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + 8]
test dword [ecx + edx*4], eax
je 0x1003542a
mov al, 1
jmp 0x1003542c
xor al, al
test bl, 0x40
je 0x10035434
and ebx, 0xffffffbf
test al, al
je 0x10035442
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.1003a270
mov eax, dword [0x10059264]
add esi, 4
mov eax, dword [eax]
cmp esi, dword [eax + 0x154]
jne 0x10034e50
movss xmm2, dword [ebp - 0x44]
mulss xmm2, dword [0x10052f00]
lea esi, [ebp - 0x34]
xor edx, edx
nop word [eax + eax]
xor eax, eax
mov ecx, esi
movss xmm0, dword [ecx]
call fcn.10011fc0
comiss xmm2, xmm0
jb 0x100354a1
inc eax
add ecx, 4
cmp eax, 3
jl 0x10035474
inc edx
add esi, 0xc
cmp edx, 1
jl 0x10035470
jmp 0x100354c1
push str.invalid_bitset_N__position
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
mov eax, dword [ebp - 0x4c]
movss xmm0, dword [ebp - 0x40]
movss dword [eax], xmm0
movss xmm0, dword [ebp - 0x3c]
movss dword [eax + 4], xmm0
movss xmm0, dword [ebp - 0x38]
movss dword [eax + 8], xmm0
lea ecx, [ebp - 0x1c]
call fcn.10025ed0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8