Function at 0x401f34
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xd4
mov eax, dword [0x565fa8]
mov esi, str.chrome.dll
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, byte [ecx + 0x13]
mov edx, dword [ecx + 0xc]
movzx eax, bl
test bl, bl
mov edi, eax
cmovs edi, edx
test edi, edi
je 0x402012
mov dword [ebp - 0xd4], eax
lea eax, [ecx + 8]
mov dword [ebp - 0xdc], edx
mov dword [ebp - 0xd8], eax
push str.service
mov dword [ebp - 0xe0], ecx
call fcn.004ff010
add esp, 4
cmp eax, edi
jne 0x401fc9
mov ebx, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xd8]
push edi
push str.service
push 0xffffffffffffffff
push 0
call fcn.0041d42c
test eax, eax
je 0x402012
mov eax, ebx
mov bl, byte [ebx + 0x13]
mov eax, dword [eax + 0xc]
movzx ecx, bl
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd4], ecx
push str.watcher
call fcn.004ff010
add esp, 4
mov ecx, dword [ebp - 0xd4]
test bl, bl
mov esi, str.chrome_child.dll
cmovs ecx, dword [ebp - 0xdc]
cmp eax, ecx
jne 0x402012
mov ecx, dword [ebp - 0xd8]
push eax
push str.watcher
push 0xffffffffffffffff
push 0
call fcn.0041d42c
test eax, eax
mov eax, str.chrome_watcher.dll
mov esi, str.chrome_child.dll
cmove esi, eax
cmp word [esi], 0
je 0x402027
xor edi, edi
cmp word [esi + edi*2 + 2], 0
lea edi, [edi + 1]
jne 0x40201a
jmp 0x402029
xor edi, edi
lea ebx, [ebp - 0x1c]
mov ecx, ebx
call fcn.00422d30
push ebx
push 2
call fcn.0042b980
add esp, 8
mov eax, 0x518018
push eax
call fcn.004ff010
add esp, 4
lea edx, [ebp - 0xd0]
mov ecx, ebx
push eax
mov eax, 0x518018
push eax
push edx
mov ebx, edx
call fcn.00423e50
lea eax, [ebp - 0x28]
mov ecx, ebx
push edi
push esi
push eax
call fcn.004238b0
mov ecx, ebx
call fcn.00422e00
lea ebx, [ebp - 0xd0]
mov ecx, ebx
push 0x21
lea eax, [ebp - 0x28]
push eax
call fcn.00422b50
mov ecx, ebx
call fcn.00425500
mov ecx, ebx
mov byte [ebp - 0xd4], al
call fcn.00422c90
cmp byte [ebp - 0xd4], 0
je 0x4020be
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xd0]
push eax
call fcn.00422d50
lea ebx, [ebp - 0xd0]
jmp 0x4020cf
lea ecx, [ebp - 0x1c]
push edi
push esi
lea ebx, [ebp - 0xd0]
push ebx
call fcn.004238b0
lea ecx, [ebp - 0x28]
call fcn.00422e00
lea ecx, [ebp - 0x1c]
call fcn.00422e00
mov edi, dword [ebp + 8]
mov ecx, edi
push ebx
call fcn.00422e40
mov ecx, ebx
call fcn.00422e00
movzx eax, byte [edi + 0xb]
test al, al
jns 0x4020fc
mov eax, dword [edi + 4]
test eax, eax
je 0x4021b5
mov ecx, edi
push ebx
call fcn.00423660
mov esi, ebx
xor ebx, ebx
cmp byte [ebp - 0xc5], bl
mov eax, esi
jns 0x402120
mov eax, dword [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, esi
call fcn.00422e00
push 0x7fffffff
push 0xffffffffffffffff
push 1
push edi
call fcn.004251f0
add esp, 0x10
cmp byte [edi + 0xb], bl
mov eax, edi
jns 0x402149
mov eax, dword [edi]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test eax, eax
jne 0x40220b
xor edi, edi
push 2
call fcn.004278b0
add esp, 4
test al, al
je 0x40220b
call fcn.00427e80
lea ebx, [ebp - 0xd0]
mov ecx, ebx
push eax
push 2
push 0x88
push str..._.._chrome_app_main_dll_loader_win.cc
call fcn.00428040
lea eax, [ebp - 0xc8]
push 0x1f
push str.Failed_to_load_Chrome_DLL_from
push eax
call fcn.00401965
add esp, 0xc
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0xb], 0
jns 0x4021b2
mov ecx, dword [ecx]
push ecx
jmp 0x4021fb
xor edi, edi
push 2
call fcn.004278b0
add esp, 4
test al, al
je 0x40220b
call fcn.00427e80
lea ebx, [ebp - 0xd0]
mov ecx, ebx
push eax
push 2
push 0x83
push str..._.._chrome_app_main_dll_loader_win.cc
call fcn.00428040
lea eax, [ebp - 0xc8]
push 0x13
push str.Cannot_find_module
push eax
call fcn.00401965
add esp, 0xc
push esi
push eax
call fcn.00428190
add esp, 8
mov ecx, ebx
call fcn.00428100
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e6891
mov eax, edi
add esp, 0xd4
pop esi
pop edi
pop ebx
pop ebp
ret 4