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

Disassembly:
push 0xffffffffffffffff
push 0x639642
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x424
push ebx
push ebp
push esi
mov esi, dword [esp + 0x444]
cmp esi, 1
push edi
mov dword [esp + 0x18], ecx
jg 0x41cd46
xor eax, eax
jmp 0x41d054
mov edi, dword [esp + 0x444]
xor ebx, ebx
cmp esi, 2
mov dword [esp + 0x20], ebx
je 0x41ce06
cmp esi, 0xf
jne 0x41ce11
push ebx
push ebx
call fcn.004202f0
test eax, eax
jne 0x41ce11
mov eax, dword [0x6fca20]
cmp eax, ebx
jne 0x41cd82
mov eax, 0x6fca24
push str.idmmzcc.xpi
push eax
lea eax, [esp + 0x2c]
push 0x6ca5f0
push eax
call fcn.0060aac7
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41ce11
cmp dword [esp + 0x44c], ebx
je 0x41cdff
mov edx, dword [0x6f7b78]
mov dword [esp + 0x10], edx
mov eax, dword [0x6fd37c]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x448], ebx
call fcn.0061fae1
mov edx, dword [esp + 0x1c]
push 0x30
push 0x6c9094
push edx
push ebx
call fcn.00457010
add esp, 0x1c
lea ecx, [esp + 0x10]
mov dword [esp + 0x43c], 0xffffffff
call fcn.00622d8a
xor eax, eax
jmp 0x41d054
mov eax, dword [edi + 4]
push eax
push 9
call fcn.0041e9b0
mov ebp, dword [esp + 0x44c]
mov bl, 1
test ebp, ebp
je 0x41cede
mov eax, dword [esp + 0x450]
test eax, eax
je 0x41cede
mov eax, dword [0x6f7b78]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x43c], 1
push ecx
mov ecx, dword [esp + 0x1c]
push esi
call fcn.0041d070
test eax, eax
jne 0x41ce66
push 0x6cbb6c
lea ecx, [esp + 0x14]
call fcn.00622f13
mov edx, dword [0x6f7b78]
mov dword [esp + 0x14], edx
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [0x6fd5f8]
push eax
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x44c], 2
call fcn.0061fae1
mov ecx, dword [0x6fd630]
mov edx, dword [esp + 0x24]
push 0x24
push ecx
push edx
push 0
call fcn.00457010
add esp, 0x20
cmp eax, 6
je 0x41ceb1
xor bl, bl
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], 1
call fcn.00622d8a
lea ecx, [esp + 0x10]
mov dword [esp + 0x43c], 0xffffffff
call fcn.00622d8a
test bl, bl
je 0x41d050
mov eax, dword [0x6f7b78]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov ebx, 3
push ecx
push esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x444], ebx
mov ecx, esi
call fcn.0041d070
test eax, eax
jne 0x41cf16
push str.this
lea ecx, [esp + 0x20]
call fcn.00622f13
mov eax, 1
mov dword [esp + 0x20], eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x41d03c
mov eax, dword [0x6fca20]
test eax, eax
jne 0x41cf3b
mov eax, 0x6fca24
push str.idmmzcc.xpi
push eax
lea edx, [esp + 0x234]
push 0x6ca5f0
push edx
call fcn.0060aac7
add esp, 0x10
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41cfd3
test ebp, ebp
je 0x41cfb8
mov ecx, dword [0x6f7b78]
mov dword [esp + 0x14], ecx
mov edx, dword [0x6fd37c]
push 1
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x448], 4
call fcn.0061fae1
mov ecx, dword [esp + 0x20]
push 0x30
push 0x6c9094
push ecx
push 0
call fcn.00457010
add esp, 0x1c
lea ecx, [esp + 0x14]
mov byte [esp + 0x43c], bl
call fcn.00622d8a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x43c], 0xffffffff
call fcn.00622d8a
xor eax, eax
jmp 0x41d054
test ebp, ebp
je 0x41d02b
mov edx, dword [0x6f7b78]
mov dword [esp + 0x18], edx
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x6fd5f0]
push eax
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x44c], 5
call fcn.0061fae1
mov ecx, dword [0x6fd630]
mov edx, dword [esp + 0x28]
push 0x40
push ecx
push edx
push 0
call fcn.00457010
add esp, 0x20
lea ecx, [esp + 0x18]
mov byte [esp + 0x43c], bl
call fcn.00622d8a
mov eax, dword [edi]
mov ecx, esi
push eax
call fcn.00413170
mov dword [edi + 0x10], 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x43c], 0xffffffff
call fcn.00622d8a
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