Function at 0x413170
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638c53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4a0
mov eax, dword [0x6fca20]
push ebx
push esi
xor ebx, ebx
push edi
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
jne 0x4131a7
mov eax, 0x6fca24
push str.idmmzcc.xpi
push eax
lea eax, [ebp - 0x29c]
push 0x6ca5f0
push eax
call fcn.0060aac7
add esp, 0x10
lea ecx, [ebp - 0x29c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413486
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x94]
mov dword [ebp - 0x28], eax
rep stosd dword es:[edi], eax
mov dword [ebp - 0x94], 0x44
mov dword [ebp - 0x68], 3
mov word [ebp - 0x64], 5
mov dword [ebp - 0x7c], 0x12c
mov dword [ebp - 0x78], 0xc8
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x24], bx
mov edx, str.__s____s_
test edx, edx
je 0x413329
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x413329
lea ecx, [ebp - 0x29c]
test ecx, ecx
je 0x413329
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x18], bx
push ebx
push edx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004027e0
push esi
lea ecx, [ebp - 0x40]
call fcn.00401ee0
lea edx, [ebp - 0x29c]
lea ecx, [ebp - 0x34]
push edx
mov byte [ebp - 4], 3
call fcn.00401ee0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00401070
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [ebp - 0x40]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
cmp edx, ebx
mov dword [ebp - 0x28], edx
je 0x413302
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x34]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x40]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x28]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00401070
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x413330
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x94]
push edx
push ecx
push ebx
push ebx
push 0x30
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
jne 0x41349b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x18], bx
push ebx
lea edx, [ebp + 8]
push ebx
push edx
push 0x400
push eax
push ebx
push 0x1100
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, str.Cannot_start_browser._r_n_s
test eax, eax
je 0x413447
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x41344a
push eax
lea ecx, [ebp - 0x40]
call fcn.00401ee0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x34]
call fcn.004027c0
push ebx
push str.Cannot_start_browser._r_n_s
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.004027e0
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
call fcn.00401f10
push eax
call fcn.00609a4e
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
cmp edx, ebx
mov dword [ebp - 0x1c], edx
je 0x41342f
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x40]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x34]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00401070
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x41345b
lea eax, [ebp - 0x18]
push 0x50030
push 0x6c9094
push eax
push ebx
call fcn.00457200
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00401070
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x50]
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x50]
push ecx
call esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4