Function at 0x42e240
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525ec1
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x58e5a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x4d5], dl
mov esi, ecx
mov dword [ebp - 0x4dc], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
test esi, esi
je 0x42e2e0
xor eax, eax
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x464], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x460], 7
mov word [ebp - 0x474], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e2b7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x474]
call fcn.00408af0
lea eax, [ebp - 0x474]
mov ecx, 1
jmp 0x42e2f4
lea eax, [edi + 0x48]
push eax
lea ecx, [ebp - 0x4f4]
call fcn.0041b5a0
mov ecx, 2
mov dword [ebp - 0x454], 0
xor edx, edx
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x454], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x444], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], dx
mov dword [ebp - 4], 2
test cl, 2
je 0x42e362
and ecx, 0xfffffffd
mov dword [ebp - 0x424], ecx
lea ecx, [ebp - 0x4f4]
call fcn.00409020
mov ecx, dword [ebp - 0x424]
mov byte [ebp - 4], 3
test cl, 1
je 0x42e376
lea ecx, [ebp - 0x474]
call fcn.00409020
cmp dword [ebp - 0x440], 8
lea esi, [ebp - 0x454]
cmovae esi, dword [ebp - 0x454]
call fcn.00410080
mov ecx, eax
test ecx, ecx
je 0x42eb11
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
push esi
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 4
call fcn.0040c680
test al, al
jne 0x42e3ec
test esi, esi
jne 0x42e3c5
xor ecx, ecx
jmp 0x42e3df
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e3d0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x424]
call fcn.0040d3a0
push 0x22
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 5
call fcn.00424640
mov esi, dword [ebp - 0x424]
cmp dword [esi - 0xc], 0
jle 0x42e488
push 0x25
push esi
call fcn.004d547c
add esp, 8
test eax, eax
je 0x42e488
sub eax, esi
sar eax, 1
js 0x42e488
cmp dword [esi - 4], 1
jle 0x42e438
push dword [esi - 0xc]
lea ecx, [ebp - 0x424]
call fcn.0040d4e0
mov esi, dword [ebp - 0x424]
push 0x208
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x42e488
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e460
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.0040d3a0
mov esi, dword [ebp - 0x424]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e490
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [edi + 0x48]
call fcn.00408af0
lea eax, [ebp - 0x4dc]
push esi
push eax
call fcn.00417530
add esp, 8
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 6
call fcn.0041a410
mov byte [ebp - 4], 5
or eax, 0xffffffff
mov edx, dword [ebp - 0x4dc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42e4eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [0x598248], 0
jne 0x42e54c
cmp byte [ebp - 0x4d5], 0
je 0x42e54c
call fcn.00436220
test al, al
je 0x42e54c
lea ecx, [edi + 0x48]
call fcn.00437050
test al, al
je 0x42e54c
cmp dword [edi + 0x5c], 8
lea edx, [edi + 0x48]
jb 0x42e51e
mov edx, dword [edi + 0x48]
test edx, edx
jne 0x42e526
xor ecx, ecx
jmp 0x42e53f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e530
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x424]
call fcn.0040d3a0
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x474]
call fcn.0041b5a0
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x424]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42e646
lea ecx, [edi + 0x48]
call fcn.00437050
test al, al
je 0x42e5ce
cmp dword [edi + 0x5c], 8
lea edx, [edi + 0x48]
jb 0x42e590
mov edx, dword [edi + 0x48]
test edx, edx
jne 0x42e598
xor ecx, ecx
jmp 0x42e5af
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42e5a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x424]
call fcn.0040d3a0
mov esi, dword [ebp - 0x424]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42e646
mov ecx, dword [ebp - 0x464]
mov eax, SysReAllocString
or dword [edi + 0xd0], 1
sub eax, ecx
cmp eax, 0x10
jb 0x42eb1b
cmp dword [ebp - 0x460], 8
lea eax, [ebp - 0x474]
push ecx
cmovae eax, dword [ebp - 0x474]
lea ecx, [ebp - 0x43c]
push eax
push 0x10
push 0x564c90
lea eax, [ebp - 0x474]
push eax
push dword [ebp - 0x4dc]
call fcn.004109a0
lea eax, [ebp - 0x43c]
push eax
lea ecx, [edi + 0x48]
call fcn.0040bfb0
lea ecx, [ebp - 0x43c]
call fcn.00409020
mov byte [ebp - 0x4d5], 0
jmp 0x42ea14
push 0
push 0
push 3
push 0
push 7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4dc], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x45c], xmm0
cmp eax, 0xffffffff
je 0x42e691
lea ecx, [ebp - 0x45c]
push ecx
lea ecx, [ebp - 0x498]
push ecx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push dword [ebp - 0x4dc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x45c]
mov ecx, dword [ebp - 0x458]
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], ecx
cmp byte [0x58f0a4], 0
je 0x42e782
xor eax, eax
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 8
or dword [edi + 0xd0], 8
push eax
push esi
call fcn.00417800
add esp, 8
test al, al
je 0x42e764
mov ecx, dword [ebp - 0x42c]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 0xb
jb 0x42eb20
cmp dword [ebp - 0x428], 8
lea eax, [ebp - 0x43c]
push ecx
cmovae eax, dword [ebp - 0x43c]
lea ecx, [ebp - 0x4f4]
push eax
push 0xb
push str._Verified_
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x4dc]
call fcn.004109a0
lea eax, [ebp - 0x4f4]
push eax
lea ecx, [edi + 0x30]
call fcn.0040bfb0
lea ecx, [ebp - 0x4f4]
call fcn.00409020
or dword [edi + 0xd0], 4
jmp 0x42e773
push 0xf
push str._Not_Verified_
lea ecx, [edi + 0x30]
call fcn.00408af0
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 7
call fcn.00409020
xorps xmm0, xmm0
mov dword [ebp - 0x478], 0
push esi
lea ecx, [ebp - 0x490]
movq qword [ebp - 0x480], xmm0
movups xmmword [ebp - 0x490], xmm0
call fcn.00408020
mov byte [ebp - 4], 9
cmp dword [ebp - 0x490], 0
je 0x42e8c4
mov eax, dword [edi + 0xd0]
and eax, 4
jne 0x42e845
push 0xb
mov dword [ebp - 0x43c], eax
lea ecx, [ebp - 0x43c]
push 0x565c04
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
call fcn.00408af0
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x4f4]
push eax
lea ecx, [ebp - 0x490]
call fcn.00408130
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x42e821
mov eax, dword [eax]
push ecx
push eax
lea ecx, [edi + 0x30]
call fcn.0040e5d0
lea ecx, [ebp - 0x4f4]
call fcn.00409020
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 9
call fcn.00409020
cmp dword [edi + 0x28], 0
jne 0x42e8c4
push 0xf
xor eax, eax
mov dword [ebp - 0x43c], 0
push 0x565c98
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
call fcn.00408af0
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x4f4]
push eax
lea ecx, [ebp - 0x490]
call fcn.00408130
push eax
lea ecx, [edi + 0x18]
call fcn.0040bfb0
lea ecx, [ebp - 0x4f4]
call fcn.00409020
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 9
call fcn.00409020
cmp dword [edi + 0x58], 0
jne 0x42e8f1
lea eax, [ebp - 0x454]
lea ecx, [edi + 0x48]
cmp ecx, eax
je 0x42e8f1
cmp dword [ebp - 0x440], 8
push dword [ebp - 0x444]
cmovae eax, dword [ebp - 0x454]
push eax
call fcn.00408af0
cmp byte [0x59828a], 0
je 0x42ea02
xor eax, eax
mov dword [ebp - 0x4c8], 0
mov dword [ebp - 0x4b0], eax
mov dword [ebp - 0x4cc], 0
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x4b4], 7
mov word [ebp - 0x4c8], ax
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x49c], 7
mov word [ebp - 0x4b0], ax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42e95a
lock inc dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub esp, 0x3c
mov dword [ebp - 0x4d4], ecx
mov edi, esp
mov dword [ebp - 0x4dc], edi
mov dword [ebp - 0x4d0], eax
mov dword [edi], 0
mov dword [edi + 4], 0
test eax, eax
je 0x42e989
lock inc dword [eax + 4]
mov dword [edi], ecx
mov dword [edi + 4], eax
add edi, 8
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x4c8]
mov dword [ebp - 0x458], edi
push eax
lea ecx, [edi + 4]
mov dword [edi], 0
call fcn.0041b5a0
lea eax, [ebp - 0x4b0]
mov byte [ebp - 4], 0xf
lea ecx, [edi + 0x1c]
push eax
call fcn.0041b5a0
mov byte [ebp - 4], 0xd
call fcn.00431130
lea ecx, [ebp - 0x4cc]
call fcn.0040dfe0
mov edi, dword [ebp - 0x4d0]
test edi, edi
je 0x42ea02
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x42ea02
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x42ea02
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0x490]
mov byte [ebp - 0x4d5], 1
call fcn.0042d990
mov edx, dword [ebp - 0x460]
cmp edx, 8
jb 0x42ea54
mov ecx, dword [ebp - 0x474]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42ea4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42eb25
push edx
push ecx
call fcn.004d24a7
add esp, 8
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42ea6e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x440]
cmp edx, 8
jb 0x42eaae
mov ecx, dword [ebp - 0x454]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42eaa4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42eb25
push edx
push ecx
call fcn.004d24a7
add esp, 8
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 7
mov word [ebp - 0x454], ax
test esi, esi
je 0x42eaf0
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x42eaf0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x42eaf0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov al, byte [ebp - 0x4d5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d2a60
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040fbc0
call fcn.00408560
call fcn.00408560
call fcn.004e0791
int3