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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5492de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x678
push ebx
push esi
push edi
lea eax, [ebp - 0x174]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x104
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4091d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x384]
mov esi, eax
call fcn.00459300
mov ecx, dword [0x5b5ecc]
mov dword [ebp + 8], ecx
push esi
lea edx, [ebp + 8]
push str.Err__ld_GetMdlFN_in_InstMzExt_n
push edx
mov byte [ebp - 4], 2
call fcn.0053091a
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x384]
push 1
push eax
call fcn.004593e0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x384]
mov byte [ebp - 4], bl
call fcn.004593d0
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
lea ecx, [ebp - 0x684]
lea edx, [ebp - 0x584]
push ecx
lea eax, [ebp - 0x484]
push edx
lea ecx, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x174]
push ecx
push edx
call fcn.0051d13a
add esp, 0x14
lea eax, [ebp - 0x484]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x174]
push str.idmmzcc.xpi
push eax
push ecx
push 0x59879c
push edx
call fcn.0051d0e8
add esp, 0x14
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4091bd
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
mov ecx, dword [0x5b5ecc]
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x44], 3
mov word [ebp - 0x40], 5
mov dword [ebp - 0x58], 0x12c
mov dword [ebp - 0x54], 0xc8
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x174]
push edx
push eax
lea ecx, [ebp - 0x14]
push str.__s____s_
push ecx
mov byte [ebp - 4], 3
call fcn.0053091a
add esp, 0x10
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x70]
push edx
push eax
push ebx
push ebx
push 0x30
push 1
push ebx
push ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x409322
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x5b5ecc]
mov dword [ebp + 8], edx
push ebx
lea ecx, [ebp - 0x18]
push ebx
push ecx
push 0x400
push eax
push ebx
push 0x1100
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x18]
mov eax, dword [0x5bb474]
push edx
lea ecx, [ebp + 8]
push eax
push ecx
call fcn.0053091a
mov edx, dword [ebp - 0x18]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
push 0x50030
push 0x597f08
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00537b04
jmp 0x4091bd
mov ecx, dword [ebp - 0x2c]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x2c]
push eax
call esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00537b04
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