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

Disassembly:
push 0xffffffffffffffff
push 0x5f19c2
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 ebx, ecx
cmp edi, 1
mov dword [esp + 0x14], ebx
jle 0x417e45
mov esi, dword [esp + 0x444]
xor ebp, ebp
cmp edi, 2
mov dword [esp + 0x20], ebp
je 0x417b83
cmp edi, 0xf
jne 0x417b98
push ebp
mov ecx, ebx
call fcn.0041af70
test eax, eax
jne 0x417dd9
mov eax, dword [0x6cce08]
cmp eax, ebp
jne 0x417af2
mov eax, 0x6cce0c
push str.idmmzcc.xpi
push eax
lea eax, [esp + 0x234]
push 0x69f2a4
push eax
call fcn.005c3b7c
add esp, 0x10
lea ecx, [esp + 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x417dd9
cmp dword [esp + 0x44c], ebp
je 0x417e45
mov edx, dword [0x6c826c]
mov dword [esp + 0x10], edx
mov eax, dword [0x6cd4c8]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x448], ebp
call fcn.005d809b
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0x30
push 0x69e0fc
push edx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x43c], 0xffffffff
call fcn.005df266
jmp 0x417e45
mov eax, dword [esi + 4]
mov ecx, ebx
push eax
push 9
call fcn.00419980
test eax, eax
jne 0x417ad4
mov eax, dword [esp + 0x44c]
mov bl, 1
cmp eax, ebp
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
je 0x417c68
mov eax, dword [esp + 0x450]
test eax, eax
je 0x417c68
mov eax, dword [0x6c826c]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x43c], 1
push ecx
mov ecx, dword [esp + 0x18]
push edi
call fcn.00417e70
test eax, eax
jne 0x417bf3
push 0x6a02a8
lea ecx, [esp + 0x20]
call fcn.005df3ef
mov edx, dword [0x6c826c]
mov dword [esp + 0x10], edx
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x6cd738]
push eax
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x44c], 2
call fcn.005d809b
mov ecx, dword [0x6cd770]
mov edx, dword [esp + 0x20]
add esp, 0x10
push 0x24
push ecx
push edx
push 0
call ebp
cmp eax, 6
je 0x417c3b
xor bl, bl
lea ecx, [esp + 0x10]
mov byte [esp + 0x43c], 1
call fcn.005df266
lea ecx, [esp + 0x1c]
mov dword [esp + 0x43c], 0xffffffff
call fcn.005df266
test bl, bl
je 0x417dd3
mov eax, dword [0x6c826c]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov ebx, 3
push ecx
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x444], ebx
mov ecx, edi
call fcn.00417e70
test eax, eax
jne 0x417ca0
push str.this
lea ecx, [esp + 0x1c]
call fcn.005df3ef
mov eax, 1
mov dword [esp + 0x20], eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x417dbf
mov eax, dword [0x6cce08]
test eax, eax
jne 0x417cc5
mov eax, 0x6cce0c
push str.idmmzcc.xpi
push eax
lea edx, [esp + 0x2c]
push 0x69f2a4
push edx
call fcn.005c3b7c
add esp, 0x10
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [esp + 0x44c]
jne 0x417d59
test eax, eax
je 0x417d40
mov ecx, dword [0x6c826c]
mov dword [esp + 0x10], ecx
mov edx, dword [0x6cd4c8]
push 1
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x448], 4
call fcn.005d809b
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0x30
push 0x69e0fc
push ecx
push 0
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x43c], bl
call fcn.005df266
lea ecx, [esp + 0x18]
mov dword [esp + 0x43c], 0xffffffff
call fcn.005df266
jmp 0x417e45
test eax, eax
je 0x417dae
mov edx, dword [0x6c826c]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [0x6cd730]
push eax
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x44c], 5
call fcn.005d809b
mov ecx, dword [0x6cd770]
mov edx, dword [esp + 0x24]
add esp, 0x10
push 0x40
push ecx
push edx
push 0
call ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], bl
call fcn.005df266
mov eax, dword [esi]
mov ecx, edi
push eax
call fcn.0040fbc0
mov dword [esi + 0x10], 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x43c], 0xffffffff
call fcn.005df266
mov eax, dword [esp + 0x20]
jmp 0x417e47
call fcn.0040dbd0
test eax, eax
mov eax, dword [esp + 0x44c]
je 0x417e2a
cmp eax, ebp
je 0x417e23
cmp edi, 0xf
push 0x40
jne 0x417e0f
mov eax, dword [0x6cd770]
mov ecx, dword [0x6cd760]
push eax
push ecx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x417e47
mov edx, dword [0x6cd770]
mov eax, dword [0x6cd73c]
push edx
push eax
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x417e47
cmp eax, ebp
je 0x417e45
mov ecx, dword [0x6cd770]
mov edx, dword [0x6cd740]
push 0x30
push ecx
push edx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x430
ret 0x10