Function at 0x402ea0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x407d6a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x10]
call fcn.004012c0
lea ecx, [esp + 0x18]
mov dword [esp + 0x464], ebx
call fcn.004012c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x464], 1
call fcn.004012c0
mov eax, 0x104
push ebx
push ebx
lea ecx, [esp + 0x38]
mov byte [esp + 0x46c], 2
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
call fcn.00401d20
mov ecx, 0x41
xor eax, eax
mov edi, 0x40cee8
mov ebp, dword [esp + 0x46c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x40caa8
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x40ccd8
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x40cbd0
rep stosd dword es:[edi], eax
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x468], 3
mov byte [0x40cde0], bl
mov dword [0x40cbac], ebx
mov dword [0x40ca98], ebp
mov dword [0x40cbcc], ebx
mov dword [0x40cbb0], ebx
call fcn.004020c0
test eax, eax
je 0x402fba
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x15c]
push 0x100
push eax
push 1
push ebp
call esi
lea ecx, [esp + 0x25c]
push 0x100
push ecx
push 0xb
push ebp
call esi
jmp 0x40322d
push ebx
lea ecx, [esp + 0x24]
push ebx
push ecx
lea edx, [esp + 0x34]
push 0x40cee8
push edx
lea eax, [esp + 0x38]
push 0x40cbd0
push eax
push 0x40ccd8
lea ecx, [esp + 0x34]
call fcn.004021f0
test eax, eax
jne 0x403022
cmp dword [esp + 0x24], ebx
je 0x402ff3
cmp dword [esp + 0x28], ebx
jne 0x403022
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x15c]
push 0x100
push ecx
push 2
push ebp
call esi
lea edx, [esp + 0x25c]
push 0x100
push edx
push 0xb
push ebp
call esi
jmp 0x403370
mov edi, 0x40cbd0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x40caa8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DATA
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40caa8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x20]
mov ecx, edx
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x40309e
mov eax, dword [str.master.mdf]
lea ecx, [esp + 0x10]
push eax
push 0x40cee8
call fcn.004012e0
test eax, eax
jne 0x40309e
mov ecx, 0x41
mov edi, 0x40cee8
rep stosd dword es:[edi], eax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x58]
lea edx, [esp + 0x58]
rep stosd dword es:[edi], eax
mov edi, 0x40ccd8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._binn_sqlservr.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x58]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.004027d0
test eax, eax
je 0x403174
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x35c]
push 0x100
push ecx
push 6
push ebp
call esi
lea edx, [esp + 0x25c]
push 0x100
push edx
push 0xb
push ebp
call esi
lea eax, [esp + 0x35c]
push str.MSSQLServer
lea ecx, [esp + 0x160]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x25c]
lea eax, [esp + 0x15c]
push ebx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40364f
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x58]
lea edx, [esp + 0x58]
rep stosd dword es:[edi], eax
mov edi, 0x40ccd8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._binn_sqlagent.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x58]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.004027d0
test eax, eax
je 0x40324a
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x35c]
push 0x100
push ecx
push 6
push ebp
call esi
lea edx, [esp + 0x25c]
push 0x100
push edx
push 0xb
push ebp
call esi
lea eax, [esp + 0x35c]
push str.SQLServerAgent
lea ecx, [esp + 0x160]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x25c]
push ebx
lea eax, [esp + 0x160]
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40364f
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x58]
lea edx, [esp + 0x58]
rep stosd dword es:[edi], eax
mov edi, 0x40ccd8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._binncnfgsvr.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x58]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403328
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x58]
lea edx, [esp + 0x58]
rep stosd dword es:[edi], eax
mov edi, 0x40ccd8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._binn_sqlsui.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x58]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40338d
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x35c]
push 0x100
push ecx
push 7
push ebp
call esi
lea edx, [esp + 0x25c]
push 0x100
push edx
push 0xb
push ebp
call esi
lea eax, [esp + 0x58]
lea ecx, [esp + 0x35c]
push eax
lea edx, [esp + 0x160]
push ecx
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x25c]
push ebx
lea ecx, [esp + 0x160]
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40364f
mov edi, 0x40cee8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4033aa
mov eax, dword [0x40cbac]
or al, 0xf
mov dword [0x40cbac], eax
lea ecx, [esp + 0x30]
call fcn.00401f50
test eax, eax
je 0x4033e6
lea ecx, [esp + 0x14]
call fcn.00402560
test eax, eax
jne 0x4033e6
mov eax, dword [str._smaster.mdf]
mov edx, dword [str.master.mdf]
mov dword [0x40cbc8], eax
mov dword [0x40caa0], edx
mov dword [0x40caa4], 1
jmp 0x403402
mov eax, dword [0x40a3c8]
mov ecx, dword [0x40a3cc]
mov dword [0x40cbc8], eax
mov dword [0x40caa0], ecx
mov dword [0x40caa4], ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00401460
mov edx, dword [0x40caa0]
lea ecx, [esp + 0x10]
push edx
mov dword [0x40ca9c], eax
call fcn.00401460
push 0x1c
mov dword [0x40cfec], eax
call fcn.00403eb0
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x464], 4
je 0x40345a
mov ecx, dword [esp + 0x478]
mov edx, dword [esp + 0x470]
push ecx
push edx
push ebp
mov ecx, eax
call entry0
jmp 0x40345c
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x464], 3
mov dword [0x40cbb0], eax
je 0x40364f
push 0x40ccd8
mov ecx, eax
call fcn.00401070
mov esi, eax
cmp esi, ebx
je 0x4034e4
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x35c]
push 0x100
push eax
push 4
push ebp
call edi
lea ecx, [esp + 0x25c]
push 0x100
push ecx
push 0xb
push ebp
call edi
lea edx, [esp + 0x35c]
push esi
lea eax, [esp + 0x160]
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x25c]
lea edx, [esp + 0x15c]
push ebx
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40364f
mov ecx, dword [0x40cbb0]
call fcn.00401110
mov edi, eax
cmp edi, ebx
je 0x403556
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x35c]
push 0x100
push eax
push 5
push ebp
call esi
lea ecx, [esp + 0x25c]
push 0x100
push ecx
push 0xb
push ebp
call esi
lea edx, [esp + 0x35c]
push edi
lea eax, [esp + 0x160]
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x25c]
lea edx, [esp + 0x15c]
push ebx
push ecx
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40364f
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push str.HHCTRL.OCX
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [0x40cee4], eax
je 0x403630
push str.HtmlHelpA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x104
push 0x40cde0
mov dword [0x40cbcc], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Help_
or ecx, 0xffffffff
xor eax, eax
push 0x40cde0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40cde0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.rebuildm.chm
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40cde0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403630
mov ecx, 0x41
xor eax, eax
mov edi, 0x40cde0
rep stosd dword es:[edi], eax
mov edi, str.rebuildm.chm
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40cde0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x40cbb0]
call fcn.00401250
mov eax, dword [0x40cee4]
cmp eax, ebx
je 0x40364b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x1c], ebx
mov ecx, dword [0x40cbb0]
cmp ecx, ebx
je 0x40365f
mov edx, dword [ecx]
push 1
call dword [edx]
lea ecx, [esp + 0x30]
mov byte [esp + 0x464], 2
call fcn.00401de0
lea ecx, [esp + 0x14]
mov byte [esp + 0x464], 1
call fcn.004012d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x464], bl
call fcn.004012d0
lea ecx, [esp + 0x10]
mov dword [esp + 0x464], 0xffffffff
call fcn.004012d0
mov ecx, dword [esp + 0x45c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x458
ret 0x10