Function at 0x41ca9c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x43e00c]
xor eax, esp
mov dword [esp + 0x278], eax
cmp dword [sym.firefox.exe_g_shared_section], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x2c]
push edi
mov edi, dword [ebp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], eax
jne 0x41cb05
xor eax, eax
jmp 0x41cb0a
call fcn.00423eec
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
cmp byte [eax + 4], 0
je 0x41cb44
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
push dword [esp + 0x28]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [esp + 0x38]
test eax, eax
je 0x41cb44
xor eax, eax
inc eax
jmp 0x41cbde
push 2
mov edx, esi
mov ecx, str.CreateProcessA
call fcn.0040d872
cmp dword [sym.firefox.exe_g_shared_section], 0
pop ecx
jne 0x41cb60
xor eax, eax
jmp 0x41cb65
call fcn.00423eec
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
cmp dword [eax], 1
jle 0x41cbdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x24]
push 1
push 0x10
pop edx
mov dword [esp + 0x44], eax
call fcn.004207c4
pop ecx
test al, al
je 0x41cbd2
call fcn.004204ae
mov dword [esp + 0x28], eax
test eax, eax
je 0x41cbd2
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x10], ecx
xor ebx, ebx
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x41cbb8
call fcn.004202be
mov edi, eax
test edi, edi
je 0x41cbd2
test esi, esi
je 0x41cbf5
mov ecx, esi
call fcn.004202be
mov ebx, eax
test ebx, ebx
jne 0x41cbf5
mov ecx, edi
xor edx, edx
call fcn.0041ff53
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406335
mov esp, ebp
pop ebp
ret 0x2c
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x41cc19
call fcn.004202be
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x41cc1d
xor edx, edx
mov ecx, edi
call fcn.0041ff53
mov ecx, ebx
jmp 0x41cbcb
mov ecx, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x41cc2c
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], eax
jmp 0x41cc30
mov dword [esp + 0x1c], esi
test ebx, ebx
je 0x41cc3d
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], eax
jmp 0x41cc41
mov dword [esp + 0x20], esi
test ecx, ecx
je 0x41cc4e
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
jmp 0x41cc52
mov dword [esp + 0x14], esi
lea eax, [esp + 0x78]
mov dword [esp + 0x18], esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41cc7a
cmp eax, 0x104
lea ecx, [esp + 0x78]
cmovae ecx, esi
mov dword [esp + 0x18], ecx
push dword [esp + 0x28]
lea ecx, [esp + 0x38]
call fcn.00421a93
push 0x34
lea eax, [esp + 0x48]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x40]
add esp, 0xc
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x28], 0x10
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0041c958
add esp, 0x18
xor edx, edx
mov ecx, edi
mov esi, eax
call fcn.0041ff53
xor edx, edx
mov ecx, ebx
call fcn.0041ff53
mov ecx, dword [esp + 0x10]
xor edx, edx
call fcn.0041ff53
test esi, esi
jne 0x41cbd2
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 0x4c], esi
jne 0x41cbdc
mov edx, dword [esp + 0x3c]
mov ecx, str.CreateProcessA
call fcn.0040d779
jmp 0x41cb3c