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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517352
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x56d51c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
call fcn.00416de0
mov ecx, eax
test ecx, ecx
je 0x43e74b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x448], eax
mov dword [ebp - 4], 0
mov dword [ebp - method.mf_bind_t_class_CInstaller__class_CInstaller___void_.virtual_0], vtable.mf_bind_t_class_CInstaller__class_CInstaller___void_.0
mov dword [ebp - 0x430], 0x43c810
mov dword [ebp - 0x42c], edi
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 1
push eax
call fcn.00447240
add esp, 4
mov byte [ebp - 4], 0
call fcn.00435390
mov esi, eax
call fcn.00435410
mov ecx, eax
call fcn.00435590
mov ecx, dword [esi]
push dword [eax]
push esi
call dword [ecx + 0x24]
push eax
push str.install_type:_d__install_version:_s
call fcn.004375e0
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x43c820
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x42c], 0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 2
push eax
call fcn.00447240
add esp, 0x10
mov byte [ebp - 4], 0
lea esi, [edi + 4]
push esi
call fcn.00435410
mov ecx, eax
call fcn.004355a0
push eax
call fcn.00448700
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x43c820
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x42c], 2
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 3
push eax
call fcn.00447240
mov esi, dword [esi]
lea ecx, [ebp - 0x438]
add esp, 0xc
mov byte [ebp - 4], 0
call fcn.00448ca0
push esi
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 4
call fcn.00449280
lea ecx, [ebp - 0x438]
call fcn.00449590
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0
call fcn.00448db0
push str.remove_all_pending_files
call fcn.004375e0
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x43c820
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x42c], 3
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 5
push eax
call fcn.00447240
push str..tmp
push dword [edi + 4]
lea esi, [edi + 4]
mov byte [ebp - 4], 0
call fcn.004057b0
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x43c820
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x42c], 4
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 6
push eax
call fcn.00447240
push dword [esi]
mov byte [ebp - 4], 0
push str.remove_all_.tmp_files_in__s
call fcn.004375e0
push str.update
lea eax, [ebp - 0x42c]
push esi
push eax
call fcn.00426730
push dword [eax]
mov byte [ebp - 4], 7
call fcn.00404e60
mov edx, dword [ebp - 0x42c]
or esi, 0xffffffff
add esp, 0x2c
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43deda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.update
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.00426730
push dword [eax]
mov byte [ebp - 4], 8
push str.Delete_directory_recursively:__s
call fcn.004375e0
mov edx, dword [ebp - 0x42c]
add esp, 0x14
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43df23
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x43c820
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x42c], 5
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 9
push eax
call fcn.00447240
add esp, 4
mov byte [ebp - 4], 0
mov ecx, edi
call fcn.0043aca0
and eax, 1
mov dword [ebp - 0x444], eax
jne 0x43df82
push 0xf
push str.copy_file_fail
lea ecx, [ebp - 0x448]
call fcn.004165a0
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x43c820
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x42c], 0x5d
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xa
push eax
call fcn.00447240
push str.start_call_program
mov byte [ebp - 4], 0
call fcn.004375e0
mov eax, dword [edi + 4]
add esp, 8
push dword [eax - 0xc]
push eax
call fcn.00435410
mov ecx, eax
call fcn.004355a0
mov ecx, eax
call fcn.0043ff90
mov eax, dword [edi + 4]
push dword [eax - 0xc]
push eax
call fcn.00435410
mov ecx, eax
call fcn.004355a0
mov ecx, eax
call fcn.00440760
push dword [edi + 4]
call fcn.00449df0
add esp, 4
mov ecx, edi
call fcn.0043ebc0
test eax, eax
jne 0x43e029
push 0x14
push str.write_path_reg_fail
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x444], eax
call fcn.004165a0
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x43c820
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x42c], 0x60
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xb
push eax
call fcn.00447240
add esp, 4
mov byte [ebp - 4], 0
call fcn.00421270
mov ecx, eax
call fcn.00417df0
push eax
call fcn.00421270
mov ecx, eax
call fcn.004180b0
push eax
call fcn.00421270
mov ecx, eax
call fcn.00417fc0
push eax
call fcn.00421270
mov ecx, eax
call fcn.00417ed0
push eax
call fcn.00421270
mov ecx, eax
call fcn.00417d00
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x42c], esi
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
call fcn.004047f0
add esp, 4
lea ecx, [ebp - 0x488]
add eax, 0x10
mov dword [esi], eax
call fcn.0044a150
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x43c820
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x42c], 0x61
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xd
push eax
call fcn.00447240
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x488]
call fcn.0044a380
call fcn.00421270
mov eax, dword [eax + 0x38]
sub eax, 0x10
push eax
call fcn.004047f0
add esp, 4
lea esi, [eax + 0x10]
mov ecx, str.__fromnewinstall
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43e15f
test dx, dx
je 0x43e153
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43e15f
add eax, 4
add ecx, 4
test dx, dx
jne 0x43e131
mov dword [ebp - 0x440], 0
jmp 0x43e16a
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x440], ecx
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0xc
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43e188
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x440], 0
jne 0x43e21d
push str.Call_SetArParm
call fcn.004375e0
push 0x210
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.0049f2a0
add esp, 0x10
lea eax, [ebp - 0x42c]
lea ecx, [ebp - 0x44d]
push eax
call fcn.0043aa00
push dword [eax]
lea eax, [ebp - 0x428]
push dword [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edx, dword [ebp - 0x42c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43e1f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x43e21d
push str.SetArParm
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43e21d
push 0
push 1
call eax
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x43c820
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x42c], 0x62
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xf
push eax
call fcn.00447240
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x43c820
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x42c], 0x63
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0x10
push eax
call fcn.00447240
add esp, 8
mov byte [ebp - 4], 0xc
mov ecx, edi
call fcn.0043e8c0
test eax, eax
jne 0x43e2af
push 0x11
push str.set_autorun_fail
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x444], eax
call fcn.004165a0
push str.install_end.
call fcn.004375e0
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x448]
mov dword [ebp - method.mf_bind_t_2_class_CInstaller__class_CInstaller___void__int__wchar_t_const__.virtual_0], vtable.mf_bind_t_2_class_CInstaller__class_CInstaller___void__int__wchar_t_const__.0
mov dword [ebp - 0x438], 0x43c7f0
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 0x11
push eax
call fcn.00447240
add esp, 8
mov byte [ebp - 4], 0xc
call fcn.00421270
mov ecx, eax
call fcn.00418680
test eax, eax
je 0x43e4f0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0049f2a0
add esp, 0xc
lea eax, [ebp - 0x420]
push str.utils_bwpsvc.dll
push dword [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0
push 0x522c44
lea eax, [ebp - 0x420]
push 0x52f750
push eax
call fcn.004125f0
lea eax, [ebp - 0x420]
push eax
call fcn.004375e0
add esp, 0x14
mov dword [ebp - 0x440], 0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x43e39d
push str.IsRuning
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43e39d
call eax
mov dword [ebp - 0x440], eax
jmp 0x43e39f
xor eax, eax
push eax
push str.sv_is_runing:_d
call fcn.004375e0
add esp, 8
cmp dword [ebp - 0x440], 0
je 0x43e458
push str.run_suc
lea ecx, [ebp - 0x444]
call fcn.00404380
push str.service
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 0x12
call fcn.00404380
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x42c], esp
mov dword [eax + 0x24], 0
push 0
push 0
lea eax, [ebp - 0x444]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.00421490
mov ecx, eax
mov byte [ebp - 4], 0x13
call fcn.0040e160
mov edx, dword [ebp - 0x440]
mov eax, esi
mov byte [ebp - 4], 0x12
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43e437
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x444]
mov eax, esi
mov byte [ebp - 4], 0xc
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43e458
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049f2a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push str.Bluewhale
push eax
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43e4b6
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.config.ini
lea eax, [ebp - 0x218]
push eax
push eax
call esi
lea eax, [ebp - 0x218]
push eax
push 0x5253cc
push str.installedsvc
push 0x52f24c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
call fcn.004375e0
add esp, 4
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x44c]
push ecx
push 0
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x42c], eax
push ecx
push 0
push 0
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x440], 0
push 1
push eax
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x44c], 0
movups xmmword [ebp - 0x470], xmm0
movups xmmword [ebp - 0x460], xmm0
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
lea eax, [ebp - 0x444]
mov dword [ebp - 0x46c], 2
push eax
push dword [ebp - 0x440]
lea eax, [ebp - 0x470]
mov dword [ebp - 0x468], 3
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x45c], 1
push 1
movlpd qword [ebp - 0x464], xmm0
mov dword [ebp - 0x458], 5
mov dword [ebp - 0x454], str.Users
mov dword [ebp - 0x470], 0x10000000
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov esi, eax
test esi, esi
jne 0x43e5cb
push eax
push dword [ebp - 0x444]
push eax
push eax
push 4
push 1
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
mov ecx, dword [ebp - 0x44c]
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
test ecx, ecx
je 0x43e5e2
push ecx
call eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x444]
test ecx, ecx
je 0x43e5ef
push ecx
call eax
test esi, esi
je 0x43e6b4
push 0x44
push 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x440], 0x44
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x43e6b4
lea eax, [ebp - 0x440]
push eax
push esi
push 0
push 0x54
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x43e6ad
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x470], 0x10000000
push eax
push 0
lea eax, [ebp - 0x470]
mov dword [ebp - 0x46c], 2
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x468], 3
push 1
movlpd qword [ebp - 0x464], xmm0
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 5
mov dword [ebp - 0x454], esi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x43e6ad
push eax
push dword [ebp - 0x44c]
push eax
push eax
push 4
push 1
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.real_install_end.
call fcn.004375e0
lea esi, [edi + 0x78]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
add esp, 4
mov dword [ebp - 0x42c], esi
test esi, esi
je 0x43e6dd
mov eax, dword [esi]
push esi
call dword [eax]
mov ecx, dword [edi + 0x68]
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x43e6ee
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov byte [ebp - 4], 0x16
test esi, esi
je 0x43e6fc
mov eax, dword [esi]
push esi
call dword [eax + 4]
lea ecx, [ebp - 0x488]
call fcn.0044a330
mov edx, dword [ebp - 0x448]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x43e72c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.004727c8
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00404690
int3