Function at 0x4031a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4717a6
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x498068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], ebx
call fcn.00401810
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403256
cmp dword [0x49ad2c], 2
jg 0x403236
push 2
push 0x21b
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
lea ecx, [ebp - 0x12c]
call fcn.00424f80
mov dword [ebp - 4], ebx
mov ebx, 1
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x74], ebx
jb 0x403220
mov esi, dword [esi]
lea ecx, [eax + 8]
mov edx, str.error__dir_not_existed:
call fcn.00407130
mov edx, esi
mov ecx, eax
call fcn.00425a00
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x403a9b
lea ecx, [ebp - 0x12c]
call fcn.00425110
jmp 0x403a9b
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00452050
push edi
lea eax, [ebp - 0x50]
push 0x484978
push eax
call fcn.004073e0
add esp, 0x18
lea ecx, [ebp - 0x68]
mov edx, esi
call fcn.00403070
mov dword [ebp - 4], 1
cmp dword [ebp - 0x58], 0
jne 0x40333a
cmp dword [0x49ad2c], 2
jg 0x4032c9
push 2
push 0x224
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
lea ecx, [ebp - 0x12c]
call fcn.00424f80
mov byte [ebp - 4], 2
lea ecx, [eax + 8]
mov ebx, 2
mov edx, str.error:_adding_empty_filepath.
mov dword [ebp - 0x74], ebx
call fcn.00407130
mov dword [ebp - 4], 1
test bl, 2
je 0x4032e0
lea ecx, [ebp - 0x12c]
call fcn.00425110
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x403321
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403317
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403aba
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
jmp 0x403a94
cmp dword [0x49ad2c], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jg 0x4033b5
sub esp, 8
mov dword [ebp - 0x12c], 0
lea ecx, [ebp - 0x124]
call fcn.00422bb0
mov dword [ebp - 0x88], str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
mov dword [ebp - 0x84], 0x227
call edi
push 0x227
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x80], eax
call fcn.00425610
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x124]
mov ebx, 4
mov edx, str.id:
mov dword [ebp - 0x74], ebx
call fcn.00407130
lea edx, [ebp - 0x50]
mov ecx, eax
call fcn.00425a00
mov dword [ebp - 4], 1
test bl, 4
je 0x4033d2
and ebx, 0xfffffffb
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x74], ebx
call fcn.00425110
cmp dword [0x49ad2c], 0
jg 0x40344c
sub esp, 8
mov dword [ebp - 0x12c], 0
lea ecx, [ebp - 0x124]
call fcn.00422bb0
mov dword [ebp - 0x88], str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
mov dword [ebp - 0x84], 0x228
call edi
push 0x228
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x80], eax
call fcn.00425610
mov byte [ebp - 4], 8
or ebx, 8
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x74], ebx
jb 0x403433
mov esi, dword [esi]
mov edx, str.in:
lea ecx, [ebp - 0x124]
call fcn.00407130
mov edx, esi
mov ecx, eax
call fcn.00425a00
mov dword [ebp - 4], 1
test bl, 8
je 0x403469
and ebx, 0xfffffff7
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x74], ebx
call fcn.00425110
cmp dword [0x49ad2c], 0
jg 0x4034e6
sub esp, 8
mov dword [ebp - 0x12c], 0
lea ecx, [ebp - 0x124]
call fcn.00422bb0
mov dword [ebp - 0x88], str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
mov dword [ebp - 0x84], 0x229
call edi
push 0x229
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x80], eax
call fcn.00425610
mov byte [ebp - 4], 9
lea esi, [ebp - 0x68]
or ebx, 0x10
lea ecx, [ebp - 0x124]
cmp dword [ebp - 0x54], 8
mov edx, str.nor:
mov dword [ebp - 0x74], ebx
cmovae esi, dword [ebp - 0x68]
call fcn.00407130
mov edx, esi
mov ecx, eax
call fcn.00425a00
mov dword [ebp - 4], 1
test bl, 0x10
je 0x403503
and ebx, 0xffffffef
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x74], ebx
call fcn.00425110
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
push 0xf003f
push str.SYSTEMCurrentControlSetServicesQPCore
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
call fcn.004240f0
mov dword [ebp - 0x78], eax
test eax, eax
je 0x40362f
cmp dword [0x49ad2c], 2
jg 0x403590
push 2
push 0x22f
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
lea ecx, [ebp - 0x12c]
call fcn.00424f80
mov esi, eax
mov byte [ebp - 4], 0xb
or ebx, 0x20
mov dword [ebp - 0x74], ebx
call edi
push eax
push dword [ebp - 0x78]
lea ecx, [esi + 8]
mov edx, str.reg_key_could_not_be_opened:
call fcn.00407130
mov ecx, eax
call fcn.00405290
mov edx, 0x484a0c
mov ecx, eax
call fcn.00407130
mov ecx, eax
call fcn.004050f0
mov dword [ebp - 4], 0xa
test bl, 0x20
je 0x4035a7
lea ecx, [ebp - 0x12c]
call fcn.00425110
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4035c0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x4035d5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0xc
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x403616
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40360c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403abf
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
jmp 0x403a94
push 0xf003f
push ecx
lea ecx, [ebp - 0x70]
call fcn.004241d0
mov esi, eax
test esi, esi
je 0x4038a6
cmp dword [0x49ad2c], 2
jg 0x4036de
sub esp, 8
mov dword [ebp - 0x12c], 2
lea ecx, [ebp - 0x124]
call fcn.00422bb0
mov dword [ebp - 0x88], str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
mov dword [ebp - 0x84], 0x236
call edi
push 0x236
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x80], eax
call fcn.00425610
mov byte [ebp - 4], 0x10
or ebx, 0x40
mov dword [ebp - 0x74], ebx
call edi
push eax
push esi
mov edx, str.reg_subkey_could_not_be_opened:
lea ecx, [ebp - 0x124]
call fcn.00407130
mov ecx, eax
call fcn.00405290
mov edx, 0x484a0c
mov ecx, eax
call fcn.00407130
mov ecx, eax
call fcn.004050f0
mov edx, str.._subkey_will_be_created.
mov ecx, eax
call fcn.00407130
mov dword [ebp - 4], 0xa
test bl, 0x40
je 0x4036fb
and ebx, 0xffffffbf
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x74], ebx
call fcn.00425110
cmp esi, 2
jne 0x40381e
push 0xf003f
lea eax, [ebp - 0x78]
push eax
push str.SYSTEMCurrentControlSetServicesQPCoreProductInfo
push ecx
lea ecx, [ebp - 0x70]
call fcn.00424000
mov dword [ebp - 0x78], eax
test eax, eax
je 0x4038a6
cmp dword [0x49ad2c], esi
jg 0x403780
push esi
push 0x23c
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
lea ecx, [ebp - 0x12c]
call fcn.00424f80
mov esi, eax
mov byte [ebp - 4], 0x11
or ebx, 0x80
mov dword [ebp - 0x74], ebx
call edi
push eax
push dword [ebp - 0x78]
lea ecx, [esi + 8]
mov edx, str.reg_subkey_could_not_be_created:
call fcn.00407130
mov ecx, eax
call fcn.00405290
mov edx, 0x484a0c
mov ecx, eax
call fcn.00407130
mov ecx, eax
call fcn.004050f0
mov dword [ebp - 4], 0xa
test bl, bl
jns 0x403796
lea ecx, [ebp - 0x12c]
call fcn.00425110
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4037af
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x4037c4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0x12
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x403805
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4037fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ac4
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
jmp 0x403a94
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x403837
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x40384c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0x16
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x40388d
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403883
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ac9
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
jmp 0x403a94
cmp dword [ebp - 0x54], 8
lea edx, [ebp - 0x68]
cmovae edx, dword [ebp - 0x68]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4038b6
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [ecx*2 + 2]
push eax
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x70]
call fcn.00424610
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4038f5
push eax
call esi
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x70]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40390c
push eax
call edi
mov dword [ebp - 0x70], 0
cmp dword [ebp - 0x78], 0
je 0x403a16
cmp dword [0x49ad2c], 2
jg 0x40397c
push 2
push 0x24b
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3hummersetuputil_serviceqd_helper.cpp
lea ecx, [ebp - 0x12c]
call fcn.00424f80
mov esi, eax
mov byte [ebp - 4], 0x1a
or ebx, 0x100
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x78]
lea ecx, [esi + 8]
mov edx, str.reg_write_value_failed:
call fcn.00407130
mov ecx, eax
call fcn.00405290
mov edx, 0x484a0c
mov ecx, eax
call fcn.00407130
mov ecx, eax
call fcn.004050f0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xa
test ebx, 0x100
je 0x403996
lea ecx, [ebp - 0x12c]
call fcn.00425110
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4039ab
push eax
call esi
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x4039bc
push eax
call edi
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0x1b
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x4039fd
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4039f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ace
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
jmp 0x403a94
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], 1
test eax, eax
je 0x403a32
push eax
call esi
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x403a43
push eax
call edi
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 0x1f
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x403a80
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403a76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ad3
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044f786
mov esp, ebp
pop ebp
ret
call fcn.00454bbf
call fcn.00454bbf
call fcn.00454bbf
call fcn.00454bbf
call fcn.00454bbf
call fcn.00454bbf
int3