Function at 0x429a30
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x48b369
mov eax, dword fs:[0]
push eax
mov eax, 0x1e3c
call fcn.0046a1a0
mov eax, dword [0x4bcb20]
xor eax, esp
mov dword [esp + 0x1e38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bcb20]
xor eax, esp
push eax
lea eax, [esp + 0x1e50]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1e60]
mov ebp, ecx
mov ecx, dword [esp + 0x1e64]
mov dword [esp + 0x2c], ecx
push 0x4a19f8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], eax
call fcn.0041afa0
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
mov dword [esp + 0x1e58], 0
test eax, eax
jne 0x429b0c
mov eax, dword [ebp + 4]
push ecx
sub eax, 0x10
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.0041a0e0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.00429120
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1e5c], 1
call fcn.0041a970
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1e58], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429b0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x429b61
mov eax, dword [ebp + 4]
push eax
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
call fcn.00429310
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1e5c], 2
call fcn.0041a970
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1e58], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429b61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x1656]
push edx
mov word [esp + 0x1658], cx
call fcn.004683b0
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [eax - 0xc], 0
jne 0x429bb5
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x164c]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_FindExecutableW]
cmp eax, 0x20
jbe 0x429bb5
lea edx, [esp + 0x164c]
push edx
lea ecx, [esp + 0x1c]
call fcn.0041ae30
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
jne 0x429bed
lea eax, [ecx - 0x10]
mov dword [esp + 0x1e58], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429be6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x42a534
mov eax, dword [ebp + 0xc]
push ecx
push eax
push 0x492180
call fcn.0041c3c0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
push eax
call fcn.0041a0e0
add eax, 0x10
add esp, 0x10
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1e58], 3
call fcn.00428eb0
push 0x490c44
lea ecx, [esp + 0x1c]
call fcn.00421600
mov edi, dword [esp + 0x18]
mov ecx, dword [edi - 0xc]
xor edx, edx
push 0x3fe
push edx
lea eax, [esp + 0xe52]
push eax
mov dword [esp + 0x30], ecx
xor esi, esi
mov word [esp + 0xe54], dx
call fcn.004683b0
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esp, 0xc
jmp 0x429c6b
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
test esi, esi
jl 0x429d95
cmp esi, eax
jg 0x429d95
lea ecx, [edi + esi*2]
push 0x49217c
push ecx
call fcn.0046acc9
add esp, 8
test eax, eax
je 0x429d95
mov ecx, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
js 0x429d95
lea esi, [eax + 1]
mov eax, dword [ecx - 0xc]
test esi, esi
jl 0x429cd2
cmp esi, eax
jg 0x429cd2
lea edx, [ecx + esi*2]
push 0x49217c
push edx
call fcn.0046acc9
add esp, 8
test eax, eax
je 0x429cd2
sub eax, dword [esp + 0x18]
sar eax, 1
mov edi, eax
jmp 0x429cd5
or edi, 0xffffffff
push 0x400
lea eax, [esp + 0xe4c]
push 0
push eax
call fcn.004683b0
add esp, 0xc
sub edi, esi
push edi
push esi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
call fcn.0041c560
mov eax, dword [eax]
push 0x200
lea edx, [esp + 0xe4c]
push edx
push eax
call ebx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429d30
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 + 0x3c]
push edx
lea ecx, [esp + 0x24]
call fcn.0041c560
mov eax, dword [eax]
lea ecx, [esp + 0xe48]
push ecx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1e60], 4
call fcn.0041e190
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x1e58], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x429d8a
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 0x429c67
push 0x4a19f8
lea ecx, [esp + 0x20]
call fcn.0041afa0
push 0x4a19f8
lea ecx, [esp + 0x18]
mov byte [esp + 0x1e5c], 5
call fcn.0041afa0
mov edi, dword [esp + 0x28]
push 0x48fed8
mov bl, 6
push edi
mov byte [esp + 0x1e60], bl
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x429f6b
xor ecx, ecx
push 0x200
push ecx
lea edx, [esp + 0x42]
push edx
mov word [esp + 0x44], cx
call fcn.004683b0
mov eax, dword [ebp + 0xc]
push 0x100
lea ecx, [esp + 0x48]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.0046a4f2
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
add esp, 0x30
push str..BMP
lea edx, [esp + 0x3c]
push edx
call esi
test eax, eax
je 0x429ef4
push str..DIB
lea eax, [esp + 0x3c]
push eax
call esi
test eax, eax
je 0x429ef4
push str..GIF
lea ecx, [esp + 0x3c]
push ecx
call esi
test eax, eax
je 0x429ef4
push str..PNG
lea edx, [esp + 0x3c]
push edx
call esi
test eax, eax
je 0x429ef4
push str..JPE
lea eax, [esp + 0x3c]
push eax
call esi
test eax, eax
je 0x429ef4
push str..JPG
lea ecx, [esp + 0x3c]
push ecx
call esi
test eax, eax
je 0x429ef4
push str..JPEG
lea edx, [esp + 0x3c]
push edx
call esi
test eax, eax
je 0x429ef4
push str..JFIF
lea eax, [esp + 0x3c]
push eax
call esi
test eax, eax
je 0x429ef4
push str..TIF
lea ecx, [esp + 0x3c]
push ecx
call esi
test eax, eax
je 0x429ef4
push str..TIFF
lea edx, [esp + 0x3c]
push edx
call esi
test eax, eax
je 0x429ef4
lea ecx, [esp + 0x14]
call fcn.004204e0
lea ecx, [esp + 0x1c]
call fcn.004204e0
lea ecx, [esp + 0x28]
call fcn.004204e0
lea ecx, [esp + 0x18]
call fcn.004204e0
xor eax, eax
jmp 0x42a534
xor eax, eax
push 0x400
push eax
lea ecx, [esp + 0x1252]
push ecx
mov word [esp + 0x1254], ax
call fcn.004683b0
mov eax, dword [ebp + 0xc]
add esp, 0xc
push 0x200
lea edx, [esp + 0x124c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push str.MSPAINT.EXE
lea ecx, [esp + 0x20]
call fcn.0041ae30
push 0x490c44
lea ecx, [esp + 0x18]
call fcn.0041af60
lea eax, [esp + 0x1248]
push eax
lea ecx, [esp + 0x18]
call fcn.0041af60
push 0x490c44
lea ecx, [esp + 0x18]
call fcn.0041af60
jmp 0x42a476
sub eax, edi
sar eax, 1
mov esi, eax
lea ecx, [esi + 4]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x30]
call fcn.0041a720
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1e5c], 7
call fcn.0041a970
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x1e58], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x429fbc
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 0x429fd6
push 0x4a19f8
lea ecx, [esp + 0x18]
call fcn.0041ae30
jmp 0x42a026
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.0041a6a0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1e5c], 8
call fcn.0041a970
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x1e58], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42a026
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
call fcn.00428eb0
push 0x490c44
lea ecx, [esp + 0x20]
call fcn.00421600
push 0x490c40
lea ecx, [esp + 0x20]
call fcn.00421600
lea ecx, [esp + 0x14]
call fcn.00428eb0
push 0x490c44
lea ecx, [esp + 0x18]
call fcn.00421600
push 0x490c40
lea ecx, [esp + 0x18]
call fcn.00421600
xor ecx, ecx
push 0x200
push ecx
lea edx, [esp + 0x246]
push edx
mov word [esp + 0x248], cx
call fcn.004683b0
xor eax, eax
push 0x200
push eax
lea ecx, [esp + 0x85a]
push ecx
mov word [esp + 0x85c], ax
call fcn.004683b0
mov ecx, dword [esp + 0x34]
push 0x100
lea edx, [esp + 0x860]
push edx
push 0x100
lea eax, [esp + 0x260]
push eax
push 0
push 0
push 0
push 0
push ecx
call fcn.0046a4f2
add esp, 0x3c
lea edx, [esp + 0x844]
push edx
lea eax, [esp + 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.WINWORD.EXE
lea ecx, [esp + 0x240]
push ecx
call esi
test eax, eax
jne 0x42a13c
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x42a12c
push str._t__n
push eax
call fcn.0046acc9
add esp, 8
test eax, eax
je 0x42a12c
sub eax, dword [esp + 0x14]
sar eax, 1
jns 0x42a13c
push 0x4920d0
push 0
lea ecx, [esp + 0x1c]
call fcn.00428de0
push str.SLDWORKS.EXE
lea edx, [esp + 0x240]
push edx
call esi
test eax, eax
jne 0x42a15d
push 0x4a19f8
lea ecx, [esp + 0x18]
call fcn.0041ae30
push str.CORELDRW.EXE
lea eax, [esp + 0x240]
push eax
call esi
test eax, eax
jne 0x42a17e
push 0x4a19f8
lea ecx, [esp + 0x18]
call fcn.0041ae30
push str.MSPAINT.EXE
lea ecx, [esp + 0x240]
push ecx
call esi
test eax, eax
jne 0x42a19f
push str.MSPAINT.EXE
lea ecx, [esp + 0x20]
call fcn.0041ae30
push str.KMCAD.EXE
lea edx, [esp + 0x240]
push edx
call esi
test eax, eax
jne 0x42a1c0
push str._dde
lea ecx, [esp + 0x18]
call fcn.0041ae30
push str.REVIT.EXE
lea eax, [esp + 0x240]
push eax
call esi
test eax, eax
jne 0x42a1e1
push 0x4a19f8
lea ecx, [esp + 0x18]
call fcn.0041ae30
xor ecx, ecx
push 0x400
push ecx
lea edx, [esp + 0x44a]
push edx
mov word [esp + 0x44c], cx
call fcn.004683b0
mov eax, dword [ebp + 0xc]
add esp, 0xc
push 0x200
lea ecx, [esp + 0x444]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x42a236
mov edx, dword [esp + 0x2c]
push 0x200
push edx
lea eax, [esp + 0x448]
push eax
call fcn.0046b2f1
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jl 0x42a38e
push 0x49205c
push ecx
call fcn.0046acc9
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x42a2fb
sub eax, ecx
sar eax, 1
js 0x42a2fb
lea ecx, [esp + 0x14]
push 0x49205c
push ecx
call fcn.00428cd0
add esp, 8
test al, al
je 0x42a2a3
lea edx, [esp + 0x440]
push edx
lea eax, [esp + 0x18]
push 0x48f98c
push eax
call fcn.0041c610
add esp, 0xc
jmp 0x42a3df
push 0x4a19f8
lea ecx, [esp + 0x24]
call fcn.0041afa0
lea ecx, [esp + 0x440]
push ecx
lea edx, [esp + 0x24]
push 0x48f98c
push edx
mov byte [esp + 0x1e64], 9
call fcn.0041c610
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
push 0x49205c
lea ecx, [esp + 0x1c]
call fcn.0041e190
lea ecx, [esp + 0x20]
mov byte [esp + 0x1e58], bl
call fcn.004204e0
jmp 0x42a3df
cmp dword [ecx - 0xc], 0
jl 0x42a38e
push 0x492054
push ecx
call fcn.0046acc9
add esp, 8
test eax, eax
je 0x42a38e
sub eax, dword [esp + 0x14]
sar eax, 1
js 0x42a38e
lea ecx, [esp + 0x14]
push 0x492054
push ecx
call fcn.00428cd0
add esp, 8
test al, al
jne 0x42a284
push 0x4a19f8
lea ecx, [esp + 0x24]
call fcn.0041afa0
lea ecx, [esp + 0x440]
push ecx
lea edx, [esp + 0x24]
push 0x48f98c
push edx
mov byte [esp + 0x1e64], 0xa
call fcn.0041c610
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
push 0x492054
lea ecx, [esp + 0x1c]
call fcn.0041e190
lea ecx, [esp + 0x20]
mov byte [esp + 0x1e58], bl
call fcn.004204e0
jmp 0x42a3df
lea ecx, [esp + 0x14]
push 0x4a19f8
push ecx
call fcn.0041a1b0
add esp, 8
test al, al
je 0x42a3b2
push 0x490c40
lea ecx, [esp + 0x18]
call fcn.0041af60
push 0x490c44
lea ecx, [esp + 0x18]
call fcn.0041af60
lea edx, [esp + 0x440]
push edx
lea ecx, [esp + 0x18]
call fcn.0041af60
push 0x490c44
lea ecx, [esp + 0x18]
call fcn.0041af60
push str.KQKQP
lea eax, [esp + 0x240]
push eax
call esi
test eax, eax
jne 0x42a403
lea ecx, [esp + 0x440]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041ae30
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42a476
push 0x3fe
push eax
lea ecx, [esp + 0xa52]
push ecx
mov word [esp + 0xa54], ax
call fcn.004683b0
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea edx, [esp + 0xa48]
push edx
push 0
push eax
call dword [sym.imp.SHELL32.dll_FindExecutableW]
lea eax, [esp + 0xa48]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a450
sub eax, edx
sar eax, 1
je 0x429ec9
lea eax, [esp + 0xa48]
push eax
lea ecx, [esp + 0x20]
call fcn.0041ae30
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ecx
push edx
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [esp + 0x1e58], 5
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42a4bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x1e58], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a4e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x1e58], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a508
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
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x1e58], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a52f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1e50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1e38]
xor ecx, esp
call fcn.00469030
add esp, 0x1e48
ret 0x10