Function at 0x1000f600
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
xor edi, edi
mov esi, eax
cmp dword [esp + 0x24], edi
je 0x1000f9ae
mov ecx, dword [esp + 0x28]
lea eax, [ecx - 0x10]
cmp eax, 0x10
ja 0x1000f9ae
test cl, 3
jne 0x1000f9ae
lea edx, [ebx - 0x10]
cmp edx, 0x10
ja 0x1000f9ae
test bl, 3
jne 0x1000f9ae
cmp ebp, edi
je 0x1000f65d
cmp ebp, 1
jne 0x1000f9ae
cmp dword [esp + 0x2c], edi
je 0x1000f9ae
cmp esi, edi
je 0x1000f9ae
mov eax, dword [0x100504d0]
cmp eax, edi
jne 0x1000f718
push str.NSS_DISABLE_HW_AES
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
jne 0x1000f7c2
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push 1
call fcn.1002dd30
mov ecx, dword [esp + 0x20]
mov eax, ecx
and eax, 0x2000000
add esp, 0x14
neg eax
sbb eax, eax
and eax, 2
dec eax
test cl, 2
mov edx, edi
setne dl
mov dword [0x100504d0], eax
lea edx, [edx + edx - 1]
mov dword [0x100504dc], edx
test ecx, 0x8000000
je 0x1000f7b3
test ecx, 0x10000000
je 0x1000f7b3
mov ecx, 0
xgetbv
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
and eax, 6
cmp al, 6
mov eax, dword [0x100504d0]
jne 0x1000f7b3
mov dword [0x100504d8], 1
mov ecx, dword [esp + 0x28]
cmp eax, edi
jle 0x1000f7d8
test cl, 7
jne 0x1000f7d8
cmp ebx, 0x10
jne 0x1000f7d8
mov eax, 1
mov dword [0x100504d4], eax
cmp dword [0x100504d8], edi
jle 0x1000f74f
mov dword [0x100504e0], eax
cmp dword [0x100504dc], edi
jg 0x1000f755
mov dword [0x100504e0], edi
mov eax, ebx
mov edi, ecx
shr eax, 2
shr edi, 2
mov dword [esi], eax
cmp edi, eax
jbe 0x1000f767
mov eax, edi
add eax, 6
mov dword [esi + 4], eax
cmp ebp, 1
jne 0x1000f843
mov ecx, dword [esp + 0x2c]
push ebx
push ecx
lea edx, [esi + 0xc]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
cmp dword [0x100504d4], 0
je 0x1000f82c
cmp dword [esp + 0x34], 0
mov eax, dword [esp + 0x28]
je 0x1000f804
cmp eax, 0x10
jne 0x1000f7e3
mov ecx, dword [esp + 0x28]
mov eax, 0x10039640
jmp 0x1000f8a0
mov dword [0x100504d8], 0xffffffff
jmp 0x1000f712
mov ecx, dword [esp + 0x28]
or eax, 0xffffffff
mov dword [0x100504d0], eax
mov dword [0x100504d8], eax
mov dword [0x100504dc], eax
mov dword [0x100504d4], edi
jmp 0x1000f74f
cmp eax, 0x18
jne 0x1000f7f6
mov ecx, dword [esp + 0x28]
mov eax, 0x10039700
jmp 0x1000f8a0
mov ecx, dword [esp + 0x28]
mov eax, 0x100397e0
jmp 0x1000f8a0
cmp eax, 0x10
jne 0x1000f817
mov ecx, dword [esp + 0x28]
mov eax, 0x100398d0
jmp 0x1000f8a0
cmp eax, 0x18
mov eax, 0x10039bf0
je 0x1000f826
mov eax, 0x10039f80
mov ecx, dword [esp + 0x28]
jmp 0x1000f8a0
cmp dword [esp + 0x34], 0
mov eax, 0x1000f360
jne 0x1000f83d
mov eax, 0x1000f4d0
mov ecx, dword [esp + 0x28]
jmp 0x1000f8a0
cmp dword [0x100504d4], 0
je 0x1000f88f
cmp dword [esp + 0x34], 0
je 0x1000f872
cmp ecx, 0x10
jne 0x1000f85f
mov eax, 0x10037d60
jmp 0x1000f8a0
cmp ecx, 0x18
jne 0x1000f86b
mov eax, 0x10038020
jmp 0x1000f8a0
mov eax, 0x10038350
jmp 0x1000f8a0
cmp ecx, 0x10
jne 0x1000f87e
mov eax, 0x100386f0
jmp 0x1000f8a0
mov eax, 0x100389b0
cmp ecx, 0x18
je 0x1000f8a0
mov eax, 0x10038ce0
jmp 0x1000f8a0
cmp dword [esp + 0x34], 0
mov eax, 0x1000f300
jne 0x1000f8a0
mov eax, 0x1000f470
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
inc eax
imul eax, dword [esi]
cmp eax, 0x78
jbe 0x1000f8c6
push 0xffffe001
call sub.nss3.dll_PORT_SetError_Util
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x14
ret
cmp dword [0x100504d4], 0
je 0x1000f963
cmp dword [esp + 0x34], 0
je 0x1000f920
cmp ecx, 0x10
jne 0x1000f8f5
mov edx, dword [esp + 0x24]
lea ecx, [esi + 0x2c]
push ecx
push edx
call fcn.10039080
add esp, 8
jmp 0x1000f98b
cmp ecx, 0x18
jne 0x1000f90d
mov ecx, dword [esp + 0x24]
lea eax, [esi + 0x2c]
push eax
push ecx
call fcn.10039230
add esp, 8
jmp 0x1000f98b
mov eax, dword [esp + 0x24]
lea edx, [esi + 0x2c]
push edx
push eax
call fcn.10039430
add esp, 8
jmp 0x1000f98b
cmp ecx, 0x10
jne 0x1000f938
mov edx, dword [esp + 0x24]
lea ecx, [esi + 0x2c]
push ecx
push edx
call fcn.10039170
add esp, 8
jmp 0x1000f98b
cmp ecx, 0x18
jne 0x1000f950
mov ecx, dword [esp + 0x24]
lea eax, [esi + 0x2c]
push eax
push ecx
call fcn.10039340
add esp, 8
jmp 0x1000f98b
mov eax, dword [esp + 0x24]
lea edx, [esi + 0x2c]
push edx
push eax
call fcn.10039520
add esp, 8
jmp 0x1000f98b
cmp dword [esp + 0x34], 0
je 0x1000f978
mov eax, dword [esp + 0x24]
push edi
mov ecx, esi
call fcn.1000e900
jmp 0x1000f984
mov ecx, dword [esp + 0x24]
push ecx
mov eax, edi
call fcn.1000ebe0
add esp, 4
test eax, eax
jne 0x1000f9bb
pop edi
mov dword [esi + 0x210], esi
mov dword [esi + 0x20c], 0
mov dword [esi + 0x214], 1
pop esi
xor eax, eax
pop ebp
add esp, 0x14
ret
push 0xffffe005
call sub.nss3.dll_PORT_SetError_Util
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x14
ret