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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff693
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x57b070]
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 dword [ebp - 0x48], ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4f6caa
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4f6cc1
shr eax, 4
not al
and al, 1
jne 0x4f6cdd
cmp dword [esi + 0x2c], 8
lea eax, [esi + 0x18]
jb 0x4f6ccc
mov eax, dword [eax]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4f6d23
shr eax, 4
not al
and al, 1
je 0x4f6d23
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x4f6cfa
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4f6cee
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00418a60
add esi, 0x18
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4f6da5
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4f6d12
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00418a60
jmp 0x4f6da5
cmp dword [esi + 0x44], 8
lea edi, [esi + 0x30]
mov eax, edi
jb 0x4f6d30
mov eax, dword [edi]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4f6d41
shr eax, 4
not al
and al, 1
jne 0x4f6d65
cmp dword [esi + 0x5c], 8
lea eax, [esi + 0x48]
jb 0x4f6d4c
mov eax, dword [eax]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4f6ea8
shr eax, 4
not al
and al, 1
je 0x4f6ea8
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x4f6d82
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4f6d76
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00418a60
add esi, 0x48
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4f6da2
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4f6d96
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00418a60
mov edi, dword [ebp - 0x44]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4f6e26
shr eax, 4
not al
and al, 1
je 0x4f6e26
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.004f6850
test al, al
jne 0x4f6eda
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
push 4
cmovae esi, dword [ebp - 0x28]
mov ecx, edi
push str.load
call fcn.004442e0
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f6e00
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.004442e0
push 9
push str.__failed.
mov ecx, edi
call fcn.004442e0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4f6ea8
shr eax, 4
not al
and al, 1
je 0x4f6ea8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.004f6850
test al, al
jne 0x4f6eda
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
push 4
cmovae esi, dword [ebp - 0x40]
mov ecx, edi
push str.load
call fcn.004442e0
mov edx, esi
lea edi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4f6e80
mov ecx, dword [ebp - 0x44]
sub edx, edi
sar edx, 1
push edx
push esi
call fcn.004442e0
mov ecx, dword [ebp - 0x44]
push 9
push str.__failed.
call fcn.004442e0
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.00418a00
lea ecx, [ebp - 0x40]
call fcn.00418a00
mov al, bl
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.004a35cb
mov esp, ebp
pop ebp
ret 8
mov bl, 1
jmp 0x4f6eaa