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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x4a22d0]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x1c], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 2
je 0x4213c3
test byte [edi + 0x98], 1
jne 0x4213c3
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x4213cd
mov eax, dword [esi]
jmp 0x4213cf
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
setne byte [esp + 0x17]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
sub ebx, 0
je 0x42143f
dec ebx
je 0x42141b
dec ebx
jne 0x4214c7
cmp dword [esi + 0x14], 8
jb 0x421417
mov ecx, dword [esi]
jmp 0x421441
mov ecx, esi
jmp 0x421441
cmp dword [esi + 0x14], 8
jb 0x421425
mov ecx, dword [esi]
jmp 0x421427
mov ecx, esi
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x20]
call fcn.00421150
add esp, 4
cmp dword [esp + 0x18], 0
je 0x421452
xor ecx, ecx
lea eax, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
call fcn.00421150
add esp, 4
cmp dword [esp + 0x10], 0
je 0x4214c7
test byte [edi + 0x98], 1
je 0x42147d
cmp dword [edi + 0x14], 8
jb 0x42146c
mov edx, dword [edi]
jmp 0x42146e
mov edx, edi
mov eax, dword [esp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
js 0x4214c7
test byte [edi + 0x98], 2
je 0x4214a0
cmp dword [edi + 0x2c], 8
lea edx, [edi + 0x18]
jb 0x421491
mov edx, dword [edx]
mov eax, dword [esp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
js 0x4214c7
test byte [edi + 0x98], 4
je 0x421518
cmp dword [edi + 0x44], 8
lea edx, [edi + 0x30]
jb 0x4214b4
mov edx, dword [edx]
mov eax, dword [esp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jns 0x421560
xor bl, bl
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4214d7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4214e5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4214f3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x421501
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov ecx, dword [esp + 0x234]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x18], 0
je 0x421560
xor eax, eax
push 0x206
push eax
mov word [esp + 0x30], ax
lea eax, [esp + 0x32]
push eax
call fcn.0046eac0
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x34]
add esp, 0xc
mov ecx, dword [eax]
push 0x104
push edx
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x421560
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test byte [edi + 0x98], 8
je 0x421587
cmp dword [edi + 0x5c], 8
lea edx, [edi + 0x48]
jb 0x421574
mov edx, dword [edx]
mov eax, dword [esp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x4214c7
test byte [edi + 0x98], 0x10
je 0x4215b1
cmp dword [edi + 0x74], 8
lea edx, [edi + 0x60]
jb 0x42159b
mov edx, dword [edx]
mov eax, dword [esp + 0xc]
push dword [edi + 0x78]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
test eax, eax
js 0x4214c7
mov ebx, dword [edi + 0x98]
mov eax, ebx
shr eax, 5
shr ebx, 6
and eax, 0xffffff01
and bl, 1
mov dword [esp + 0x24], eax
test al, al
jne 0x4215d7
test bl, bl
je 0x42165c
call fcn.00411770
cmp eax, 4
jl 0x42165c
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], 0
push 0x49cb80
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x421692
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4214c7
cmp byte [esp + 0x24], 0
je 0x421634
cmp dword [edi + 0x90], 8
lea edx, [edi + 0x7c]
jb 0x421625
mov edx, dword [edx]
mov ecx, eax
call fcn.0041c2c0
test al, al
je 0x421692
mov eax, dword [esp + 0x20]
test bl, bl
je 0x421652
movzx ecx, byte [edi + 0x94]
push ecx
mov ecx, eax
call fcn.0041c250
add esp, 4
test al, al
je 0x421692
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42165c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x421672
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x421688
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x1c], 0
cmp dword [esi + 0x14], 8
jb 0x4216a9
mov edx, dword [esi]
jmp 0x4216ab
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4214c7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4214c7
mov edx, esi
mov eax, dword [esp + 0x10]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4216d0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4216e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0xc], 0
test edi, edi
setns bl
test bl, bl
je 0x4214c9
cmp byte [esp + 0x17], 0
je 0x421710
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x4214c9
cmp dword [esi + 0x14], 8
jb 0x421718
mov esi, dword [esi]
push 0
push esi
push 5
push 2
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x4214c9