Function at 0x100341ea
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071b23
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1003422d
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x58], eax
push dword [ebp - 0x58]
push 0x7921
push 1
call fcn.100345ba
add esp, 0xc
jmp 0x100345ac
lea eax, [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x10034280
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x1003427b
push 0x1eb6
push 0x26c7
push 0x132d
push 0x1bfd
push 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
jmp 0x100345ac
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax]
test eax, eax
je 0x100345ac
mov dword [ebp - 0x38], 0x1735
cmp dword [ebp - 0x38], 0x1053
jge 0x1003459d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x106636b0
call fcn.100117e1
mov ecx, eax
call fcn.100117e1
mov ecx, eax
call fcn.100117e1
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
jle 0x100342e5
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.10016403
cmp dword [ebp - 0x30], 2
jne 0x10034306
push fcn.100165df
mov edx, 0x1000b848
mov ecx, 0x106635f8
call fcn.1001679b
mov ecx, eax
call fcn.10011bfa
lea ecx, [ebp - 0x1c]
call fcn.1003e9de
and dword [ebp - 4], 0
mov dword [ebp - 0x28], 1
jmp 0x10034322
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x30]
jg 0x10034338
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1003e9eb
jmp 0x1003431b
mov dword [ebp - 0x2c], 1
lea ecx, [ebp - 0x1c]
call fcn.1003ea3e
movzx eax, al
test eax, eax
jne 0x10034576
lea ecx, [ebp - 0x1c]
call fcn.10017a17
cmp eax, 2
jne 0x10034364
jmp 0x10034576
and dword [ebp - 0x10], 0
jmp 0x10034371
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
call fcn.10017a17
cmp dword [ebp - 0x10], eax
jae 0x1003456a
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.10011fc8
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
jne 0x100343a8
mov eax, dword [ebp - 0x10]
inc eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.10011fc8
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
je 0x100343ce
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.10011fc8
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
jne 0x100343e7
mov eax, dword [ebp - 0x10]
inc eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.10011fc8
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
jne 0x100343e7
push fcn.100165df
push dword [ebp - 0x2c]
mov ecx, 0x106635f8
call fcn.1003e7ba
mov ecx, eax
call fcn.10011bfa
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.10011fc8
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
jne 0x1003443f
push 1
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1001200a
mov ecx, eax
call fcn.1001724c
mov ecx, eax
call fcn.1001724c
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1003ea49
jmp 0x10034565
mov eax, dword [ebp - 0x10]
inc eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.10011fc8
mov eax, dword [eax]
cmp eax, dword [ebp - 0x20]
jne 0x1003448c
push dword [ebp - 0x10]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1001200a
mov ecx, eax
call fcn.1001724c
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
push dword [ebp - 0x48]
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1003ea49
jmp 0x10034565
push dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.10011fc8
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
jne 0x100344e4
push 1
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1001200a
mov ecx, eax
call fcn.1001724c
mov ecx, eax
call fcn.1001724c
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x50]
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1003ea49
jmp 0x10034565
mov eax, dword [ebp - 0x10]
inc eax
push eax
lea ecx, [ebp - 0x1c]
call fcn.10011fc8
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
jne 0x1003452e
push dword [ebp - 0x10]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1001200a
mov ecx, eax
call fcn.1001724c
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1003ea49
jmp 0x10034565
push dword [ebp - 0x10]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1001200a
mov ecx, eax
call fcn.1001724c
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
push dword [ebp - 0x60]
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1003ea49
jmp 0x1003436a
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x1003433f
push fcn.100165df
mov edx, 0x1000b848
mov ecx, 0x106635f8
call fcn.1001679b
mov ecx, eax
call fcn.10011bfa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10011fc3
push 0x773
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret