Function at 0x41d760
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4680e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 4
cmp dword [0x48786c], edi
jne 0x41d9d1
mov eax, dword [0x487868]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
mov esi, eax
cmp esi, edi
jge 0x41d7d2
push esi
push str.Failed_to_create_the_app_domain_setup_HRESULT__0x_x_.
jmp 0x41d9bd
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push 0x4777fc
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
cmp esi, edi
jge 0x41d7f6
push esi
push str.Failed_to_obtain_the_app_domain_setup__HRESULT__0x_x_.
jmp 0x41d9bd
mov eax, dword [ebx + 0x90]
mov esi, dword [ebp - 0x14]
cmp eax, edi
jne 0x41d82f
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 5
mov ecx, dword [esi]
mov edx, dword [ecx + 0x10]
push edi
push esi
call edx
push edi
mov esi, eax
mov byte [ebp - 4], 4
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jns 0x41d849
push esi
push str.Failed_to_set_the_app_base_for_the_domain__HRESULT__0x_x_.
jmp 0x41d9bd
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
jne 0x41d806
push 0x8007000e
call fcn.00401670
mov esi, dword [ebx + 0x90]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
push eax
push esi
lea eax, [ebp - 0x20]
push eax
call fcn.0042f860
push str._actions
call edi
push eax
push str._actions
lea ecx, [ebp - 0x20]
push ecx
call fcn.0042f860
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
push ecx
push eax
call edx
mov esi, eax
test esi, esi
jns 0x41d899
push esi
push str.Failed_to_set_the_private_bin_path_for_the_domain__HRESULT__0x_x_.
jmp 0x41d9bd
lea eax, [ebx + 0x138]
mov edi, 0x487938
call fcn.00421640
mov ecx, dword [0x487938]
mov eax, 4
push edi
cmp dword [ecx - 0xc], eax
jle 0x41d8ea
lea ecx, [ebp - 0x28]
call fcn.00421e80
push eax
mov ecx, str..dll
mov byte [ebp - 4], 6
call fcn.00421780
test eax, eax
lea eax, [ebp - 0x28]
setne byte [ebp - 0xd]
mov byte [ebp - 4], 4
call fcn.00421240
cmp byte [ebp - 0xd], 0
je 0x41d8f4
push edi
mov edx, str..dll
call fcn.004221f0
push 0x487938
mov edx, str..config
call fcn.004221f0
mov esi, dword [ebx + 0x90]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
push eax
push esi
lea edx, [ebp - 0x18]
push edx
call fcn.0042f860
push str._actions_
call edi
push eax
push str._actions_
lea eax, [ebp - 0x18]
push eax
call fcn.0042f860
mov eax, dword [0x487938]
push eax
mov esi, eax
call edi
push eax
push esi
lea ecx, [ebp - 0x18]
push ecx
call fcn.0042f860
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41d970
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x28]
call eax
mov esi, eax
test esi, esi
jns 0x41d970
push esi
push str.Failed_to_set_the_config_file_for_the_domain__HRESULT__0x_x_.
jmp 0x41d9bd
mov eax, dword [ebx + 0xc8]
mov ecx, dword [0x487868]
mov edx, dword [ecx]
lea esi, [ebp - 0x24]
push esi
mov esi, dword [ebp - 0x1c]
push 0
push esi
push eax
mov eax, dword [edx + 0x44]
push ecx
call eax
mov esi, eax
test esi, esi
jns 0x41d99d
push esi
push str.Failed_to_create_the_app_domain__HRESULT__0x_x_.
jmp 0x41d9bd
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx]
push 0x48786c
push 0x47780c
push eax
call edx
mov esi, eax
test esi, esi
jns 0x41d9d3
push esi
push str.Failed_to_obtain_the_app_domain__HRESULT__0x_x_.
lea edi, [ebx + 0x118]
mov dword [ebx + 0x120], esi
call fcn.00428bb0
add esp, 8
test esi, esi
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
sete bl
test eax, eax
je 0x41d9e9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41d9fc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41da0f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call esi
mov ecx, dword [ebp - 0x20]
push ecx
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret