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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bca06
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4f9008]
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 ecx, dword [ebp + 8]
lea eax, [ebp - 0x64]
mov esi, dword [ebp + 0xc]
push eax
call sym.XNewLook.exe_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call sym.XNewLook.exe_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x64]
call sym.XNewLook.exe_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0x44]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x430ea3
mov byte [ebp - 0x65], 0
mov bl, byte [ebp - 0x65]
jmp 0x430ead
shr ebx, 4
mov byte [ebp - 0x65], 1
and bl, 1
lea ecx, [ebp - 0x48]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
cmp byte [ebp - 0x65], 0
je 0x431163
test bl, bl
je 0x431163
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call sym.XNewLook.exe_public:_class_LString___thiscall_LString::get_real_file_from_env_format_void_
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x430ef1
mov byte [ebp - 0x65], 0
mov bl, byte [ebp - 0x65]
jmp 0x430efb
shr ebx, 4
mov byte [ebp - 0x65], 1
and bl, 1
lea ecx, [ebp - 0x48]
call sym.XNewLook.exe_public_virtual:_void___thiscall_LString::destructor_void_
cmp byte [ebp - 0x65], 0
je 0x431163
test bl, bl
je 0x431163
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x60]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x4c], 8
push ecx
cmovae eax, dword [ebp - 0x60]
push eax
call fcn.0047cdb1
add esp, 8
test eax, eax
jne 0x430f40
xor esi, esi
jmp 0x431166
lea ecx, [ebp - 0xb4]
call sym.XNewLook.exe_public:_void___thiscall_LDirSnap::constructor_void_
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0xb4]
mov byte [ebp - 0xb4], 1
call sym.XNewLook.exe_public:_void___thiscall_LDirSnap::set_file_class_LString_const__
lea ecx, [ebp - 0xb4]
call sym.XNewLook.exe_public:_int___thiscall_LDirSnap::snap_void_
lea ecx, [ebp - 0xfc]
call sym.XNewLook.exe_public:_void___thiscall_LDirSnap::constructor_void_
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xfc]
mov byte [ebp - 0xfc], 1
call sym.XNewLook.exe_public:_void___thiscall_LDirSnap::set_file_class_LString_const__
lea ecx, [ebp - 0xfc]
call sym.XNewLook.exe_public:_int___thiscall_LDirSnap::snap_void_
mov ecx, dword [ebp - 0xac]
mov eax, 0x2e8ba2e9
mov edi, dword [ebp - 0xb0]
sub ecx, edi
mov ebx, dword [ebp - 0xf8]
imul ecx
mov ecx, dword [ebp - 0xf4]
mov eax, 0x2e8ba2e9
sar edx, 4
sub ecx, ebx
mov esi, edx
shr esi, 0x1f
add esi, edx
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
je 0x430fec
mov esi, 0xfffffffd
jmp 0x4310ae
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
test esi, esi
je 0x4310ac
xor esi, esi
nop dword [eax + eax]
lea ecx, [esi + 0x20]
add ecx, ebx
cmp dword [ecx + 0x14], 8
jb 0x43100d
mov ecx, dword [ecx]
lea eax, [esi + 0x20]
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x43101a
mov eax, dword [eax]
push ecx
push eax
call fcn.0047cdb1
add esp, 8
test eax, eax
jne 0x431159
mov edi, dword [ebp - 0xb0]
mov ebx, dword [ebp - 0xf8]
lea edx, [edi + esi]
mov al, byte [edx + 0x50]
lea ecx, [ebx + esi]
cmp al, byte [ecx + 0x50]
jne 0x43114f
test al, al
jne 0x431084
mov eax, dword [edx + 0x40]
cmp eax, dword [ecx + 0x40]
jne 0x431145
mov eax, dword [edx + 0x44]
cmp eax, dword [ecx + 0x44]
jne 0x431145
push ecx
push edx
call sym.XNewLook.exe_int___cdecl_LFile::compare_class_LString_const___class_LString_const__
add esp, 8
test eax, eax
jne 0x43113b
mov edi, dword [ebp - 0xb0]
mov ebx, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xac]
mov eax, 0x2e8ba2e9
inc dword [ebp - 0x6c]
sub ecx, edi
imul ecx
add esi, 0x58
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x6c], eax
jb 0x431000
xor esi, esi
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 4
call fcn.004061f0
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 5
call fcn.004061f0
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 6
call fcn.004061f0
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 7
call fcn.004061f0
lea ecx, [ebp - 0xf8]
call fcn.0040fd20
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 8
call fcn.004061f0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 9
call fcn.004061f0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0xa
call fcn.004061f0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xb
call fcn.004061f0
lea ecx, [ebp - 0xb0]
call fcn.0040fd20
jmp 0x431166
mov esi, 0xfffffff8
jmp 0x4310ae
mov esi, 0xfffffffb
jmp 0x4310ae
mov esi, 0xfffffff9
jmp 0x4310ae
mov esi, 0xfffffffc
jmp 0x4310ae
or esi, 0xffffffff
mov eax, dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
mov edx, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x2c], vtable.LString.0
mov dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count], eax
cmp edx, 8
jb 0x4311b7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4311a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43122c
push edx
push ecx
call fcn.00475891
mov eax, dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count]
add esp, 8
mov edx, dword [ebp - 0x4c]
xor ecx, ecx
dec eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 0x64], vtable.LString.0
mov dword [sym.XNewLook.exe_unsigned_int_LString::_ui_instance_count], eax
cmp edx, 8
jb 0x43120e
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x431204
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43122c
push edx
push ecx
call fcn.00475891
add esp, 8
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.00475880
mov esp, ebp
pop ebp
ret
call fcn.0047cd61
int3