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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd21c
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x52c1c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xac], 0
cmp dword [edi + 0x10], 0
jne 0x41c647
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.004223a0
jmp 0x41c877
cmp dword [edi + 0x14], 8
jb 0x41c651
mov eax, dword [edi]
jmp 0x41c653
mov eax, edi
cmp word [eax], 0x22
push 0xffffffffffffffff
push 0
push edi
jne 0x41c67d
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
call fcn.004223a0
jmp 0x41c877
xor eax, eax
mov dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.004223a0
or ebx, 0xffffffff
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
mov dword [ebp - 0xa4], 0x20
push 1
lea eax, [ebx + 1]
mov ecx, edi
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00425640
mov ebx, eax
mov ecx, edi
push ebx
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.0042dc10
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x41c73b
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41c719
inc eax
push eax
push dword [ebp - 0x28]
call fcn.004237a0
push dword [ebp - 0xa8]
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0041e960
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x41c754
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004237a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41c77f
test al, 0x10
jne 0x41c77f
lea eax, [ebp - 0x28]
push eax
call fcn.0042ac40
add esp, 4
test al, al
jne 0x41c78d
cmp ebx, 0xffffffff
jne 0x41c6d6
jmp 0x41c81b
push ebx
push 0
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.0042dc10
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 4
push 0x503bb8
push eax
call fcn.00402740
push 0x503bb8
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 5
push eax
call fcn.004026e0
add esp, 0x18
lea ecx, [ebp - 0x40]
push eax
call fcn.00415e40
lea ecx, [ebp - 0x58]
call fcn.004a80a0
lea ecx, [ebp - 0xa0]
call fcn.004a80a0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.004a80a0
cmp ebx, 0xffffffff
je 0x41c81b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.0042dc10
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00421e70
lea ecx, [ebp - 0x70]
call fcn.004a80a0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x40]
push eax
call fcn.0041e960
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41c84e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004237a0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x41c877
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004237a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bedf5
mov esp, ebp
pop ebp
ret