Function at 0x41a180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x616732
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x424
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x448]
mov dword [esp + 0x18], ecx
cmp edi, 1
jg 0x41a1b6
xor eax, eax
jmp 0x41a4c2
mov esi, dword [esp + 0x444]
xor ebp, ebp
cmp edi, 2
mov dword [esp + 0x20], ebp
je 0x41a277
cmp edi, 0xf
jne 0x41a282
push ebp
push ebp
call fcn.0041d7a0
test eax, eax
jne 0x41a282
mov eax, dword [0x6d22e8]
cmp eax, ebp
jne 0x41a1f2
mov eax, 0x6d22ec
push str.idmmzcc.xpi
push eax
lea eax, [esp + 0x2c]
push 0x6a2544
push eax
call fcn.005e8107
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41a282
cmp dword [esp + 0x44c], ebp
je 0x41a270
mov edx, dword [0x6cd768]
mov dword [esp + 0x10], edx
mov eax, dword [0x6d2b14]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x448], ebp
call fcn.005fc86b
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0x30
push 0x6a1028
push edx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x43c], 0xffffffff
call fcn.00603a3c
xor eax, eax
jmp 0x41a4c2
mov eax, dword [esi + 4]
push eax
push 9
call fcn.0041bd70
mov eax, dword [esp + 0x44c]
mov bl, 1
cmp eax, ebp
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
je 0x41a352
mov eax, dword [esp + 0x450]
test eax, eax
je 0x41a352
mov eax, dword [0x6cd768]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x43c], 1
push ecx
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0041a4e0
test eax, eax
jne 0x41a2dd
push 0x6a3728
lea ecx, [esp + 0x14]
call fcn.00603bc5
mov edx, dword [0x6cd768]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [0x6d2d90]
push eax
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x44c], 2
call fcn.005fc86b
mov ecx, dword [0x6d2dc8]
mov edx, dword [esp + 0x24]
add esp, 0x10
push 0x24
push ecx
push edx
push 0
call ebp
cmp eax, 6
je 0x41a325
xor bl, bl
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], 1
call fcn.00603a3c
lea ecx, [esp + 0x10]
mov dword [esp + 0x43c], 0xffffffff
call fcn.00603a3c
test bl, bl
je 0x41a4be
mov eax, dword [0x6cd768]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x43c], 3
push ecx
push edi
mov edi, dword [esp + 0x20]
mov ecx, edi
call fcn.0041a4e0
test eax, eax
jne 0x41a389
push str.this
lea ecx, [esp + 0x20]
call fcn.00603bc5
mov eax, dword [esi + 8]
mov ebx, 1
test eax, eax
mov dword [esp + 0x20], ebx
mov dword [esi + 0xc], ebx
je 0x41a4aa
mov eax, dword [0x6d22e8]
test eax, eax
jne 0x41a3ae
mov eax, 0x6d22ec
push str.idmmzcc.xpi
push eax
lea edx, [esp + 0x234]
push 0x6a2544
push edx
call fcn.005e8107
add esp, 0x10
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [esp + 0x44c]
jne 0x41a447
test eax, eax
je 0x41a42f
mov ecx, dword [0x6cd768]
mov dword [esp + 0x14], ecx
mov edx, dword [0x6d2b14]
push ebx
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x448], 4
call fcn.005fc86b
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0x30
push 0x6a1028
push ecx
push 0
call ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], 3
call fcn.00603a3c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x43c], 0xffffffff
call fcn.00603a3c
xor eax, eax
jmp 0x41a4c2
test eax, eax
je 0x41a49d
mov edx, dword [0x6cd768]
mov dword [esp + 0x18], edx
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x6d2d88]
push eax
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x44c], 5
call fcn.005fc86b
mov ecx, dword [0x6d2dc8]
mov edx, dword [esp + 0x28]
add esp, 0x10
push 0x40
push ecx
push edx
push 0
call ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x43c], 3
call fcn.00603a3c
mov eax, dword [esi]
mov ecx, edi
push eax
call fcn.00411f50
mov dword [esi + 0x10], ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x43c], 0xffffffff
call fcn.00603a3c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x430
ret 0x10