Function at 0x40ebc0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x468d39
mov eax, dword fs:[0]
push eax
sub esp, 0x930
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x92c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0x944]
mov dword fs:[0], eax
mov eax, dword [esp + 0x954]
mov ebp, ecx
mov ecx, dword [esp + 0x958]
mov dword [esp + 0x34], ecx
push 0x46db5c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], eax
call fcn.00403c70
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
mov dword [esp + 0x94c], 0
test eax, eax
jne 0x40ec98
mov eax, dword [ebp + 4]
push ecx
sub eax, 0x10
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.004030b0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.0040e780
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x950], 1
call fcn.004037f0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x94c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ec98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
jne 0x40ecec
mov eax, dword [ebp + 4]
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.0040e970
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x950], 2
call fcn.004037f0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x94c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ecec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x3ff
lea ecx, [esp + 0x545]
push 0
push ecx
mov byte [esp + 0x54c], 0
call fcn.00449a70
mov edx, dword [esp + 0x24]
add esp, 0xc
cmp dword [edx - 0xc], 0
jne 0x40ed53
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x540]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jbe 0x40ed53
lea eax, [esp + 0x540]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ed38
sub eax, edx
push eax
lea edx, [esp + 0x544]
push edx
lea ecx, [esp + 0x20]
call fcn.004033c0
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
jne 0x40ed8b
lea eax, [ecx - 0x10]
mov dword [esp + 0x94c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ed84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40f515
mov eax, dword [ebp + 0xc]
push ecx
push eax
push 0x46ea24
call fcn.00412580
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
push eax
call fcn.004030b0
add eax, 0x10
add esp, 0x10
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94c], 3
call fcn.0040e4b0
push 0x46e934
lea ecx, [esp + 0x1c]
call fcn.0040e550
mov edi, dword [esp + 0x18]
mov ecx, dword [edi - 0xc]
push 0x103
xor esi, esi
lea edx, [esp + 0x241]
push esi
push edx
mov dword [esp + 0x30], ecx
mov byte [esp + 0x248], 0
call fcn.00449a70
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
add esp, 0xc
jmp 0x40ee07
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
test esi, esi
jl 0x40ef2c
cmp esi, eax
jg 0x40ef2c
push 0x46ea20
add esi, edi
push esi
call fcn.0044c9aa
add esp, 8
test eax, eax
je 0x40ef2c
mov ecx, dword [esp + 0x18]
sub eax, ecx
js 0x40ef2c
lea esi, [eax + 1]
mov eax, dword [ecx - 0xc]
test esi, esi
jl 0x40ee69
cmp esi, eax
jg 0x40ee69
lea eax, [esi + ecx]
push 0x46ea20
push eax
call fcn.0044c9aa
add esp, 8
test eax, eax
je 0x40ee69
sub eax, dword [esp + 0x18]
mov edi, eax
jmp 0x40ee6c
or edi, 0xffffffff
push 0x104
lea ecx, [esp + 0x240]
push 0
push ecx
call fcn.00449a70
add esp, 0xc
sub edi, esi
push edi
push esi
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
call fcn.004051e0
mov eax, dword [eax]
push 0x104
lea ecx, [esp + 0x240]
push ecx
push eax
call ebx
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40eec7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 2
push edi
lea ecx, [esi - 1]
push ecx
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
call fcn.004051e0
mov eax, dword [eax]
lea ecx, [esp + 0x23c]
push ecx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x954], 4
call fcn.00407500
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x94c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ef21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
cmp esi, dword [esp + 0x24]
jl 0x40ee03
push 0x46db5c
lea ecx, [esp + 0x24]
call fcn.00403c70
push 0x46db5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x950], 5
call fcn.00403c70
mov edi, dword [esp + 0x28]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
push str..EXE
mov bl, 6
push edi
mov byte [esp + 0x954], bl
call esi
test eax, eax
jne 0x40f003
push str..DLL
push edi
call esi
test eax, eax
jne 0x40f003
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x94c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40efab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x94c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40efd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x94c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eff7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x40ed60
sub eax, edi
mov esi, eax
lea ecx, [esi + 4]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x30]
call fcn.004035d0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x950], 7
call fcn.004037f0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x94c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f052
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi - 0xc]
add eax, 0xfffffffc
cmp esi, eax
jne 0x40f06c
push 0x46db5c
lea ecx, [esp + 0x18]
call fcn.004039f0
jmp 0x40f0bc
mov eax, dword [edi - 0xc]
sub eax, esi
sub eax, 4
push eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
call fcn.00403550
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x950], 8
call fcn.004037f0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x94c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f0bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
call fcn.0040e4b0
push 0x46e934
lea ecx, [esp + 0x24]
call fcn.0040e550
push 0x46ea14
lea ecx, [esp + 0x24]
call fcn.0040e550
lea ecx, [esp + 0x14]
call fcn.0040e4b0
push 0x46e934
lea ecx, [esp + 0x18]
call fcn.0040e550
push 0x46ea14
lea ecx, [esp + 0x18]
call fcn.0040e550
push 0x46db5c
push 0x46e934
lea ecx, [esp + 0x1c]
call fcn.00407500
push 0xff
lea ecx, [esp + 0x3d]
push 0
push ecx
mov byte [esp + 0x44], 0
call fcn.00449a70
push 0xff
lea edx, [esp + 0x351]
push 0
push edx
mov byte [esp + 0x358], 0
call fcn.00449a70
mov edx, dword [esp + 0x38]
push 0x100
lea eax, [esp + 0x35c]
push eax
push 0x100
lea ecx, [esp + 0x5c]
push ecx
push 0
push 0
push 0
push 0
push edx
call fcn.0044c4cc
add esp, 0x3c
lea eax, [esp + 0x340]
push eax
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.WINWORD.EXE
lea edx, [esp + 0x3c]
push edx
call esi
test eax, eax
jne 0x40f1d2
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x40f1c2
push str._t__n
push eax
call fcn.0044c9aa
add esp, 8
test eax, eax
je 0x40f1c2
sub eax, dword [esp + 0x14]
jns 0x40f1d2
push 0x46e9f8
push 0
lea ecx, [esp + 0x1c]
call fcn.0040e390
push str.SLDWORKS.EXE
lea eax, [esp + 0x3c]
push eax
call esi
test eax, eax
jne 0x40f1f0
push 0x46db5c
lea ecx, [esp + 0x18]
call fcn.004039f0
push str.CORELDRW.EXE
lea ecx, [esp + 0x3c]
push ecx
call esi
test eax, eax
jne 0x40f20e
push 0x46db5c
lea ecx, [esp + 0x18]
call fcn.004039f0
push str.MSPAINT.EXE
lea edx, [esp + 0x3c]
push edx
call esi
test eax, eax
jne 0x40f22c
push str.MSPAINT.EXE
lea ecx, [esp + 0x24]
call fcn.004039f0
push str.KMCAD.EXE
lea eax, [esp + 0x3c]
push eax
call esi
test eax, eax
jne 0x40f24a
push str._dde
lea ecx, [esp + 0x18]
call fcn.004039f0
push 0x103
lea ecx, [esp + 0x13d]
push 0
push ecx
mov byte [esp + 0x144], 0
call fcn.00449a70
mov eax, dword [ebp + 0xc]
add esp, 0xc
push 0x104
lea edx, [esp + 0x13c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xff
lea eax, [esp + 0x445]
push 0
push eax
mov byte [esp + 0x44c], 0
call fcn.00449a70
push 0x100
lea ecx, [esp + 0x450]
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x160]
push 0
push edx
call fcn.0044c4cc
mov ecx, dword [esp + 0x44]
add esp, 0x30
cmp dword [ecx - 0xc], 0
je 0x40f2ec
lea ecx, [esp + 0x14]
call fcn.0040e450
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jl 0x40f402
push 0x46e9b4
push ecx
call fcn.0044c9aa
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40f378
sub eax, ecx
js 0x40f378
push 0x46e9b4
push ecx
call fcn.0044a83e
add esp, 8
test eax, eax
sete al
test al, al
je 0x40f33c
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x18]
push str.__s_
push ecx
call fcn.00405290
add esp, 0xc
jmp 0x40f453
push 0x46db5c
lea ecx, [esp + 0x20]
call fcn.00403c70
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x20]
push str.__s_
push eax
mov byte [esp + 0x958], 9
call fcn.00405290
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
push 0x46e9b4
jmp 0x40f3ee
cmp dword [ecx - 0xc], 0
jl 0x40f402
push 0x46e9a8
push ecx
call fcn.0044c9aa
add esp, 8
test eax, eax
je 0x40f402
sub eax, dword [esp + 0x14]
js 0x40f402
lea edx, [esp + 0x14]
push 0x46e9a8
push edx
call fcn.0040e2d0
add esp, 8
test al, al
jne 0x40f31d
push 0x46db5c
lea ecx, [esp + 0x20]
call fcn.00403c70
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x20]
push str.__s_
push eax
mov byte [esp + 0x958], 0xa
call fcn.00405290
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ecx
push 0x46e9a8
lea ecx, [esp + 0x1c]
call fcn.00407500
lea ecx, [esp + 0x1c]
call fcn.00402fe0
jmp 0x40f453
lea edx, [esp + 0x14]
push 0x46db5c
push edx
call fcn.00403150
add esp, 8
test al, al
je 0x40f426
push 0x46ea14
lea ecx, [esp + 0x18]
call fcn.00403c30
push 0x46e934
lea ecx, [esp + 0x18]
call fcn.00403c30
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x18]
call fcn.00403c30
push 0x46e934
lea ecx, [esp + 0x18]
call fcn.00403c30
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ecx
push edx
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
push eax
push ecx
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x94c], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f499
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x94c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f4c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x94c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f4e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x94c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f510
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x944]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x92c]
xor ecx, esp
call fcn.00449ba6
add esp, 0x93c
ret 0x10