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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x834
mov eax, dword [0x502204]
xor eax, esp
mov dword [esp + 0x830], eax
push ebx
push esi
mov ebx, ecx
mov byte [esp + 0xa], dl
mov esi, ebx
push edi
lea edi, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4ab770
sub esi, edi
sar esi, 1
cmp esi, 4
jb 0x4ab9f5
push 4
push 0x4e5590
push ebx
mov esi, ebx
call fcn.00459434
add esp, 0xc
test eax, eax
jne 0x4ab7a1
lea esi, [ebx + 8]
push 2
push 0x4e559c
push esi
call fcn.00459434
add esp, 0xc
test eax, eax
jne 0x4ab7ba
add esi, 4
jmp 0x4ab7d0
push 0x3a
push esi
call fcn.0044f76d
add esp, 8
test eax, eax
je 0x4ab9f5
lea esi, [eax + 2]
push 0x5c
push esi
call fcn.0044f834
add esp, 8
test eax, eax
je 0x4ab9f5
lea ecx, [eax + 2]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ab7f0
sub ecx, edx
sar ecx, 1
je 0x4ab9f5
push 4
xor esi, esi
mov dword [esp + 0x1c], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], esi
mov dword [eax], esi
call fcn.004a60e0
push ebx
lea ecx, [esp + 0x1c]
call fcn.004a5ed0
mov eax, dword [esp + 0x20]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ab8be
shr eax, 4
not al
and al, 1
je 0x4ab8be
push 4
mov dword [esp + 0x2c], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], esi
mov dword [eax], esi
call fcn.004a60e0
push ebx
lea ecx, [esp + 0x2c]
call fcn.004a5ed0
sub esp, 8
mov byte [esp + 0x1c], 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x30]
push eax
call fcn.004b5e40
lea ecx, [esp + 0x10]
call fcn.004a7cc0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4ab9cd
push eax
call fcn.00459651
add esp, 4
jmp 0x4ab9cd
lea ecx, [esp + 0x18]
call fcn.004b7370
test al, al
je 0x4ab9cb
push ebx
lea eax, [esp + 0x3c]
push str._s.
push eax
call fcn.00404d60
add esp, 0xc
lea eax, [esp + 0x38]
push 0x51e820
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4ab9b9
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edx, 0x4e55b4
mov ecx, 0x51e84c
nop dword [eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4ab936
test ax, ax
je 0x4ab932
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4ab936
add ecx, 4
add edx, 4
test ax, ax
jne 0x4ab910
xor eax, eax
jmp 0x4ab93b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4ab9a2
mov ecx, 0x4e55b8
mov eax, 0x51e84c
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4ab976
test dx, dx
je 0x4ab972
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4ab976
add eax, 4
add ecx, 4
test dx, dx
jne 0x4ab950
xor eax, eax
jmp 0x4ab97b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4ab9a2
push 0x51e84c
push ebx
lea eax, [esp + 0x40]
push 0x4e55c0
push eax
call fcn.00404d60
add esp, 0x10
lea ecx, [esp + 0x38]
mov dl, 1
call fcn.004ab740
push 0x51e820
push esi
call edi
test eax, eax
jne 0x4ab903
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0xe], 0
je 0x4ab9cb
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
jmp 0x4ab9cd
xor esi, esi
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4ab9de
push ecx
call fcn.00459651
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x83c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret