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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fad5
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x456014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x416d77
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416d94
test eax, 0x400
je 0x416d94
mov eax, 1
jmp 0x416f9e
cmp byte [ebp + 8], 0
je 0x416dea
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x416da4
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x416dea
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x416dea
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], 1
jbe 0x416dea
mov eax, 3
jmp 0x416f9e
push esi
lea ecx, [ebp - 0x2c]
call fcn.004047a0
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.004047a0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00413710
test al, al
je 0x416eab
nop word [eax + eax]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x2c]
lea esi, [ebp - 0x44]
mov ebx, dword [ebp - 0x44]
cmovae ecx, edi
cmp dword [ebp - 0x30], 8
mov edx, dword [ebp - 0x34]
cmovae esi, ebx
cmp edx, dword [ebp - 0x1c]
jne 0x416e63
test edx, edx
je 0x416eb1
sub esi, ecx
nop dword [eax + eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x416e63
add ecx, 2
sub edx, 1
jne 0x416e50
jmp 0x416eb1
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416e84
test eax, 0x400
jne 0x416f22
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.00403270
lea ecx, [ebp - 0x2c]
call fcn.00413710
test al, al
jne 0x416e20
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x416eeb
lea ecx, [ecx*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x416ede
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416fba
push ecx
push ebx
call fcn.0041cdfe
mov edi, dword [ebp - 0x2c]
add esp, 8
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x416f9c
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x416f92
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416fba
jmp 0x416f92
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x416f55
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x416f4b
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416fba
push ecx
push ebx
call fcn.0041cdfe
add esp, 8
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x416f8b
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416f81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416fba
push ecx
push edx
call fcn.0041cdfe
add esp, 8
mov eax, 2
jmp 0x416f9e
push ecx
push edi
call fcn.0041cdfe
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041cdc0
mov esp, ebp
pop ebp
ret
call fcn.0042200f
int3