Function at 0x402734
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x54c03c]
mov esi, ecx
mov edi, str.nw.dll
xor eax, ebp
mov dword [esp + 0x258], eax
cmp dword [ecx + 0x18], 0
je 0x40278c
add esi, 8
mov ecx, esi
push str.service
call fcn.00401b68
test al, al
jne 0x40278c
mov ecx, esi
push str.watcher
call fcn.00401b68
mov ecx, str.chrome_watcher.dll
mov edi, str.nw.dll
test al, al
cmovne edi, ecx
cmp word [edi], 0
je 0x4027a1
xor esi, esi
cmp word [edi + esi*2 + 2], 0
lea esi, [esi + 1]
jne 0x402794
jmp 0x4027a3
xor esi, esi
lea ebx, [esp + 0x38]
mov ecx, ebx
call fcn.0040fd00
push ebx
push 2
call fcn.0041ad40
add esp, 8
lea eax, [esp + 0x20]
mov ecx, ebx
push esi
push edi
push eax
call fcn.004113e0
lea ebx, [esp + 0x50]
mov ecx, ebx
push 0x21
lea eax, [esp + 0x24]
push eax
call fcn.0040fb20
mov ecx, ebx
call fcn.00412650
mov ecx, ebx
mov byte [esp + 4], al
call fcn.0040fc60
cmp byte [esp + 4], 0
je 0x402802
lea eax, [esp + 0x20]
lea ecx, [esp + 8]
push eax
call fcn.0040fd20
jmp 0x402835
mov ebx, 0x5017f8
push ebx
call fcn.004eabc0
add esp, 4
lea ecx, [esp + 0x38]
push eax
push ebx
lea ebx, [esp + 0x58]
push ebx
call fcn.00411e20
lea eax, [esp + 8]
mov ecx, ebx
push esi
push edi
push eax
call fcn.004113e0
mov ecx, ebx
call fcn.0040fef0
lea ecx, [esp + 0x20]
call fcn.0040fef0
lea ecx, [esp + 0x38]
call fcn.0040fef0
mov ebx, dword [ebp + 8]
lea esi, [esp + 8]
mov ecx, ebx
push esi
call fcn.0040ffd0
mov ecx, esi
call fcn.0040fef0
cmp dword [ebx + 0x10], 0
je 0x402941
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [esp + 0x38]
mov dword [esp + 4], eax
mov ecx, ebx
mov edi, edx
push edx
call fcn.00410ab0
mov esi, 7
mov eax, edi
mov edi, ebx
cmp dword [esp + 0x4c], esi
jbe 0x40289c
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x38]
call fcn.0040fef0
push edi
call fcn.00402f70
add esp, 4
cmp dword [edi + 0x14], esi
mov eax, edi
jbe 0x4028be
mov eax, dword [edi]
xor ecx, ecx
push 8
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp dword [esp + 4], 0
mov ebx, eax
lea eax, [esp + 0x50]
je 0x4028de
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test ebx, ebx
jne 0x402991
xor ebx, ebx
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x402991
call sub.KERNEL32.dll_GetLastError
mov esi, edi
lea edi, [esp + 0x50]
mov ecx, edi
push eax
push 2
push 0x91
push str..._.._chrome_app_main_dll_loader_win.cc
call fcn.00415cc0
lea eax, [esp + 0x60]
push str.Failed_to_load_NW_DLL_from
push eax
call fcn.004015c0
add esp, 8
cmp dword [esi + 0x14], 7
jbe 0x402933
mov esi, dword [esi]
push esi
push eax
call fcn.00415ea0
add esp, 8
mov ecx, edi
jmp 0x40298c
xor ebx, ebx
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x402991
call sub.KERNEL32.dll_GetLastError
lea esi, [esp + 0x50]
mov ecx, esi
push eax
push 2
push 0x8c
push str..._.._chrome_app_main_dll_loader_win.cc
call fcn.00415cc0
lea eax, [esp + 0x60]
push str.Cannot_find_module
push eax
call fcn.004015c0
add esp, 8
push edi
push eax
call fcn.00415ea0
add esp, 8
mov ecx, esi
call fcn.00415de0
mov ecx, dword [esp + 0x258]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4