Function at 0x40b070
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x44d543
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x524
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x46a8c8
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], esi
call fcn.0043fe6a
push ecx
lea edi, [esi + 4]
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
mov dword [esp + 0x544], 0
call fcn.0043fb71
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.0040aa00
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x540], 1
call fcn.0043ff35
lea ecx, [esp + 0x24]
mov byte [esp + 0x53c], 0
call fcn.0043fdfc
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b170
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
call fcn.0043fb71
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.0040ac40
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x540], 2
call fcn.0043ff35
lea ecx, [esp + 0x24]
mov byte [esp + 0x53c], 0
call fcn.0043fdfc
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b170
mov ecx, dword [esi + 0xc]
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jae 0x40b16c
lea ecx, [esp + 0x14]
mov dword [esp + 0x53c], 0xffffffff
call fcn.0043fdfc
xor eax, eax
jmp 0x40b737
mov eax, dword [esp + 0x14]
mov esi, dword [esi + 0xc]
push eax
push esi
push 0x463ccc
call fcn.0040faa0
add esp, 0xc
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
call fcn.0043fb71
lea ecx, [esp + 0x14]
mov byte [esp + 0x53c], 3
call fcn.00439a38
push 0x463a50
lea ecx, [esp + 0x18]
call fcn.004399d0
mov eax, dword [esp + 0x14]
mov ecx, 0x40
lea edi, [esp + 0x331]
push 0
mov ebp, dword [eax - 8]
xor eax, eax
mov byte [esp + 0x334], 0
push 0x463cc8
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
stosb byte es:[edi], al
call fcn.004395f2
test eax, eax
jl 0x40b2a1
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea esi, [eax + 1]
lea ecx, [esp + 0x14]
push esi
push 0x463cc8
call fcn.004395f2
mov edx, eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x330]
rep stosd dword es:[edi], eax
mov edi, edx
lea ecx, [esp + 0x24]
sub edi, esi
push edi
push esi
push ecx
lea ecx, [esp + 0x20]
call fcn.0043945a
mov eax, dword [eax]
lea edx, [esp + 0x330]
push 0x104
push edx
push eax
call ebx
lea ecx, [esp + 0x24]
call fcn.0043fdfc
add edi, 2
lea eax, [esi - 1]
push edi
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0043945a
mov eax, dword [eax]
lea edx, [esp + 0x330]
push edx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x544], 4
call fcn.004392f7
lea ecx, [esp + 0x20]
mov byte [esp + 0x53c], 3
call fcn.0043fdfc
inc esi
cmp esi, ebp
jge 0x40b2a1
push esi
push 0x463cc8
lea ecx, [esp + 0x1c]
call fcn.004395f2
test eax, eax
jge 0x40b1ef
push 0x46a8c8
lea ecx, [esp + 0x1c]
call fcn.0043fe6a
push 0x46a8c8
lea ecx, [esp + 0x14]
mov byte [esp + 0x540], 5
call fcn.0043fe6a
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov bl, 6
push str..EXE
push eax
mov byte [esp + 0x544], bl
call esi
test eax, eax
jne 0x40b342
mov ecx, dword [esp + 0x1c]
push str..DLL
push ecx
call esi
test eax, eax
jne 0x40b342
lea ecx, [esp + 0x10]
mov byte [esp + 0x53c], 5
call fcn.0043fdfc
lea ecx, [esp + 0x18]
mov byte [esp + 0x53c], 3
call fcn.0043fdfc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x53c], 0
call fcn.0043fdfc
lea ecx, [esp + 0x14]
mov dword [esp + 0x53c], 0xffffffff
call fcn.0043fdfc
xor eax, eax
jmp 0x40b737
mov ecx, dword [esp + 0x1c]
sub eax, ecx
lea ecx, [esp + 0x1c]
mov esi, eax
lea eax, [esp + 0x20]
lea edx, [esi + 4]
push edx
push eax
call fcn.0043956c
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x540], 7
call fcn.0043ff35
lea ecx, [esp + 0x20]
mov byte [esp + 0x53c], bl
call fcn.0043fdfc
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
add ecx, 0xfffffffc
cmp esi, ecx
jne 0x40b39c
push 0x46a8c8
lea ecx, [esp + 0x14]
call fcn.0043ff85
jmp 0x40b3d5
mov eax, dword [eax - 8]
lea ecx, [esp + 0x20]
sub eax, esi
sub eax, 4
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.004394f0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x540], 8
call fcn.0043ff35
lea ecx, [esp + 0x20]
mov byte [esp + 0x53c], bl
call fcn.0043fdfc
lea ecx, [esp + 0x18]
call fcn.00439a38
push 0x463a50
lea ecx, [esp + 0x1c]
call fcn.004399d0
push 0x463cbc
lea ecx, [esp + 0x1c]
call fcn.004399d0
lea ecx, [esp + 0x10]
call fcn.00439a38
push 0x463a50
lea ecx, [esp + 0x14]
call fcn.004399d0
push 0x463cbc
lea ecx, [esp + 0x14]
call fcn.004399d0
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x435]
mov byte [esp + 0x434], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x434]
stosb byte es:[edi], al
lea eax, [esp + 0x12c]
push edx
push eax
push 0
push 0
push ecx
call fcn.00423b43
lea edi, [esp + 0x448]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x12c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x12c]
and ecx, 3
push str.WINWORD.EXE
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push eax
call esi
test eax, eax
jne 0x40b4e4
push str._t__n
lea ecx, [esp + 0x14]
call fcn.004395e4
test eax, eax
jge 0x40b4e4
push 0x463cac
push 0
lea ecx, [esp + 0x18]
call fcn.00439242
lea ecx, [esp + 0x12c]
push str.SLDWORKS.EXE
push ecx
call esi
test eax, eax
jne 0x40b505
push 0x46a8c8
lea ecx, [esp + 0x14]
call fcn.0043ff85
lea edx, [esp + 0x12c]
push str.CORELDRW.EXE
push edx
call esi
test eax, eax
jne 0x40b526
push 0x46a8c8
lea ecx, [esp + 0x14]
call fcn.0043ff85
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x22d]
mov byte [esp + 0x22c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x22c]
push 0x104
push ecx
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x2c]
push edx
push 0
stosb byte es:[edi], al
push 0
lea eax, [esp + 0x238]
push 0
push eax
call fcn.00423b43
add esp, 0x14
lea ecx, [esp + 0x2c]
push str..BMP
push ecx
call esi
test eax, eax
je 0x40b5fc
lea edx, [esp + 0x2c]
push str..JPG
push edx
call esi
test eax, eax
je 0x40b5fc
lea eax, [esp + 0x2c]
push str..GIF
push eax
call esi
test eax, eax
je 0x40b5fc
lea ecx, [esp + 0x2c]
push str..PNG
push ecx
call esi
test eax, eax
je 0x40b5fc
lea edx, [esp + 0x2c]
push str..JPE
push edx
call esi
test eax, eax
je 0x40b5fc
lea eax, [esp + 0x2c]
push str..DIB
push eax
call esi
test eax, eax
je 0x40b5fc
lea ecx, [esp + 0x2c]
push str..JPEG
push ecx
call esi
test eax, eax
jne 0x40b618
push str.MSPAINT.EXE
lea ecx, [esp + 0x1c]
call fcn.0043ff85
push 0x46a8c8
lea ecx, [esp + 0x14]
call fcn.0043ff85
push 0
push 0x463c7c
lea ecx, [esp + 0x18]
call fcn.004395f2
test eax, eax
jl 0x40b676
mov edx, dword [esp + 0x10]
push 0x463c7c
push edx
call fcn.0042344d
add esp, 8
test eax, eax
jne 0x40b65e
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x10]
push eax
push str.__s_
push ecx
call fcn.0043996a
add esp, 0xc
jmp 0x40b6c7
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x10]
push edx
push 0x463c7c
call fcn.004392f7
jmp 0x40b6c7
mov eax, dword [esp + 0x10]
push 0x46a8c8
push eax
call fcn.0042344d
add esp, 8
test eax, eax
je 0x40b69a
push 0x463cbc
lea ecx, [esp + 0x14]
call fcn.004401d8
push 0x463a50
lea ecx, [esp + 0x14]
call fcn.004401d8
lea ecx, [esp + 0x22c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004401d8
push 0x463a50
lea ecx, [esp + 0x14]
call fcn.004401d8
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x544]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edx
push eax
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x548]
push ecx
push edx
call esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x53c], 5
call fcn.0043fdfc
lea ecx, [esp + 0x18]
mov byte [esp + 0x53c], 3
call fcn.0043fdfc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x53c], 0
call fcn.0043fdfc
lea ecx, [esp + 0x14]
mov dword [esp + 0x53c], 0xffffffff
call fcn.0043fdfc
mov eax, 1
mov ecx, dword [esp + 0x534]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x530
ret 8