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

Disassembly:
push 0xffffffffffffffff
push 0x5f603d
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 + 0x18], ebx
jle 0x418c80
mov esi, dword [esp + 0x444]
xor ebp, ebp
cmp edi, 2
mov dword [esp + 0x20], ebp
je 0x41890c
cmp edi, 0xf
jne 0x41893a
push ebp
push ebp
call fcn.0041c2c0
test eax, eax
jne 0x41893a
mov eax, dword [0x6d1108]
cmp eax, ebp
jne 0x418881
mov eax, 0x6d110c
push str.idmmzcc.xpi
push eax
lea eax, [esp + 0x2c]
push 0x6a331c
push eax
call fcn.005c81cc
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41893a
cmp dword [esp + 0x44c], ebp
je 0x418c80
mov edx, dword [0x6cc564]
mov dword [esp + 0x14], edx
mov eax, dword [0x6d17d0]
push 1
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x448], ebp
call fcn.005dc6eb
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0x30
push 0x6a1f84
push edx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x14]
mov dword [esp + 0x43c], 0xffffffff
call fcn.005e38b9
jmp 0x418c80
mov eax, dword [esi + 4]
mov ecx, ebx
push eax
push 9
call fcn.0041a7c0
test eax, eax
je 0x41893a
call fcn.0040dc70
mov esi, eax
push ebp
cmp esi, 0x1a
jle 0x418b80
mov ecx, ebx
call fcn.0041bda0
jmp 0x418b88
mov eax, dword [esp + 0x44c]
mov bl, 1
cmp eax, ebp
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
je 0x418a0a
mov eax, dword [esp + 0x450]
test eax, eax
je 0x418a0a
mov eax, dword [0x6cc564]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x43c], 2
push ecx
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00418ca0
test eax, eax
jne 0x418995
push 0x6a4344
lea ecx, [esp + 0x18]
call fcn.005e3a42
mov edx, dword [0x6cc564]
mov dword [esp + 0x10], edx
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x6d1a40]
push eax
push ecx
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x44c], 3
call fcn.005dc6eb
mov ecx, dword [0x6d1a78]
mov edx, dword [esp + 0x20]
add esp, 0x10
push 0x24
push ecx
push edx
push 0
call ebp
cmp eax, 6
je 0x4189dd
xor bl, bl
lea ecx, [esp + 0x10]
mov byte [esp + 0x43c], 2
call fcn.005e38b9
lea ecx, [esp + 0x14]
mov dword [esp + 0x43c], 0xffffffff
call fcn.005e38b9
test bl, bl
je 0x418b77
mov eax, dword [0x6cc564]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x43c], 4
push ecx
push edi
mov edi, dword [esp + 0x20]
mov ecx, edi
call fcn.00418ca0
test eax, eax
jne 0x418a41
push str.this
lea ecx, [esp + 0x20]
call fcn.005e3a42
mov eax, dword [esi + 8]
mov ebx, 1
test eax, eax
mov dword [esp + 0x20], ebx
mov dword [esi + 0xc], ebx
je 0x418b63
mov eax, dword [0x6d1108]
test eax, eax
jne 0x418a66
mov eax, 0x6d110c
push str.idmmzcc.xpi
push eax
lea edx, [esp + 0x234]
push 0x6a331c
push edx
call fcn.005c81cc
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 0x418b00
test eax, eax
je 0x418ae7
mov ecx, dword [0x6cc564]
mov dword [esp + 0x10], ecx
mov edx, dword [0x6d17d0]
push ebx
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x448], 5
call fcn.005dc6eb
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0x30
push 0x6a1f84
push ecx
push 0
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x43c], 4
call fcn.005e38b9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x43c], 0xffffffff
call fcn.005e38b9
jmp 0x418c80
test eax, eax
je 0x418b56
mov edx, dword [0x6cc564]
mov dword [esp + 0x18], edx
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x6d1a38]
push eax
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x44c], 6
call fcn.005dc6eb
mov ecx, dword [0x6d1a78]
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], 4
call fcn.005e38b9
mov eax, dword [esi]
mov ecx, edi
push eax
call fcn.00410870
mov dword [esi + 0x10], ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x43c], 0xffffffff
call fcn.005e38b9
mov eax, dword [esp + 0x20]
jmp 0x418c82
push ebp
mov ecx, ebx
call fcn.0041c2c0
cmp eax, ebp
jne 0x418c31
cmp esi, 0x1a
mov ecx, str.idmmzcc2.xpi
jg 0x418b9f
mov ecx, str.idmmzcc.xpi
mov eax, dword [0x6d1108]
cmp eax, ebp
jne 0x418bad
mov eax, 0x6d110c
push ecx
push eax
lea eax, [esp + 0x2c]
push 0x6a331c
push eax
call fcn.005c81cc
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x418c31
cmp dword [esp + 0x44c], ebp
je 0x418c80
mov edx, dword [0x6cc564]
mov dword [esp + 0x10], edx
mov eax, dword [0x6d17d0]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x448], 1
call fcn.005dc6eb
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0x30
push 0x6a1f84
push edx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x43c], 0xffffffff
call fcn.005e38b9
jmp 0x418c80
push ebp
call fcn.0040e2e0
add esp, 4
test eax, eax
mov eax, dword [esp + 0x44c]
je 0x418c66
cmp eax, ebp
je 0x418c5f
mov eax, dword [0x6d1a78]
mov ecx, dword [0x6d1a44]
push 0x40
push eax
push ecx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x418c82
cmp eax, ebp
je 0x418c80
mov edx, dword [0x6d1a78]
mov eax, dword [0x6d1a48]
push 0x30
push edx
push eax
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