Function at 0x422ae0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
mov eax, 0x114c
call fcn.0045ed70
push ebx
push ebp
push esi
mov esi, dword [0x47340c]
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0x4c]
cmp eax, 0xfffffffe
jne 0x422b47
test esi, esi
jl 0x422b24
cmp esi, 0x40
jge 0x422b24
mov eax, dword [esi*4 + 0x473308]
test eax, eax
je 0x422b24
mov cl, byte [eax + 0x81a]
test cl, cl
je 0x422b24
mov eax, esi
jmp 0x422b47
xor eax, eax
mov ecx, 0x473308
mov edx, dword [ecx]
test edx, edx
je 0x422b3b
mov bl, byte [edx + 0x81a]
test bl, bl
jne 0x422b90
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x422b2b
or eax, 0xffffffff
test eax, eax
jl 0x422b5b
cmp eax, 0x40
jge 0x422b5b
mov eax, dword [eax*4 + 0x473308]
test eax, eax
jne 0x422b60
mov eax, 0x473408
mov cl, byte [eax]
mov al, byte [edi + 0x482]
test cl, cl
jne 0x422b9a
test al, al
jne 0x42303f
mov eax, dword [edi + 0x44]
mov dword [eax + 0xf548], 7
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x114c
ret 4
mov esi, eax
mov dword [0x47340c], esi
jmp 0x422b47
test al, al
jne 0x42303f
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
mov ebx, 0x4839f8
mov edi, dword [ebx]
test edi, edi
je 0x422c30
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x4c]
cmp eax, 0xfffffffe
jne 0x422c03
test esi, esi
jl 0x422be1
cmp esi, 0x40
jge 0x422be1
mov eax, dword [esi*4 + 0x473308]
test eax, eax
je 0x422be1
mov cl, byte [eax + 0x81a]
test cl, cl
je 0x422be1
mov eax, esi
jmp 0x422c03
xor eax, eax
mov ecx, 0x473308
mov edx, dword [ecx]
test edx, edx
je 0x422bf7
cmp byte [edx + 0x81a], 0
jne 0x422c41
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x422be8
or eax, 0xffffffff
test eax, eax
jl 0x422c17
cmp eax, 0x40
jge 0x422c17
mov eax, dword [eax*4 + 0x473308]
test eax, eax
jne 0x422c1c
mov eax, 0x473408
add edi, 0x5c
push eax
push edi
call ebp
add esp, 8
test eax, eax
je 0x422c48
mov esi, dword [0x47340c]
add ebx, 4
cmp ebx, 0x483a38
jl 0x422bad
jmp 0x422c8e
mov dword [0x47340c], eax
jmp 0x422c03
mov eax, dword [0x483a50]
mov esi, dword [esp + 0x10]
push 0x2010
mov ecx, esi
mov edx, dword [eax + 0x4e8]
mov eax, dword [eax + 0x5c8]
push edx
push eax
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, dword [esi + 0x44]
mov dword [ecx + 0xf548], 0
mov byte [esi + 0x474], 0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x114c
ret 4
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x4c]
mov byte [esi + 0xcc7], 0
cmp eax, 0xfffffffe
jne 0x422ceb
mov eax, dword [0x47340c]
test eax, eax
jl 0x422cc4
cmp eax, 0x40
jge 0x422cc4
mov ecx, dword [eax*4 + 0x473308]
test ecx, ecx
je 0x422cc4
mov dl, byte [ecx + 0x81a]
test dl, dl
jne 0x422ceb
xor eax, eax
mov ecx, 0x473308
mov edx, dword [ecx]
test edx, edx
je 0x422cdf
mov bl, byte [edx + 0x81a]
test bl, bl
jne 0x422e07
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x422ccb
or eax, 0xffffffff
test eax, eax
jl 0x422cff
cmp eax, 0x40
jge 0x422cff
mov eax, dword [eax*4 + 0x473308]
test eax, eax
jne 0x422d04
mov eax, 0x473408
lea edx, [esp + 0x81c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x423039
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi + 0x4c]
cmp eax, 0xfffffffe
jne 0x422d35
mov ecx, 0x473308
call fcn.0041df20
test eax, eax
jl 0x422d49
cmp eax, 0x40
jge 0x422d49
mov eax, dword [eax*4 + 0x473308]
test eax, eax
jne 0x422d4e
mov eax, 0x473408
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x422e4a
test bl, 1
je 0x422e4a
mov eax, dword [esi + 0x4c]
cmp eax, 0xfffffffe
jne 0x422d81
mov ecx, 0x473308
call fcn.0041df20
test eax, eax
jl 0x422d95
cmp eax, 0x40
jge 0x422d95
mov eax, dword [eax*4 + 0x473308]
test eax, eax
jne 0x422d9a
mov eax, 0x473408
mov ecx, dword [0x483a50]
mov edx, dword [ecx + 0x5d0]
push edx
push eax
lea eax, [esp + 0x964]
push str._s_n_n_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [0x483a50]
add esp, 0x10
lea eax, [esp + 0x95c]
mov edx, dword [ecx + 0x5cc]
push 0x2014
push edx
push eax
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 7
jne 0x422e11
mov ecx, dword [esi + 0x44]
mov dword [ecx + 0xf548], 0
mov byte [esi + 0x474], 0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x114c
ret 4
mov dword [0x47340c], eax
jmp 0x422ceb
mov eax, dword [esi + 0x4c]
and ebx, 0xfffffffe
cmp eax, 0xfffffffe
mov byte [esi + 0xcc7], 1
jne 0x422e2d
mov ecx, 0x473308
call fcn.0041df20
test eax, eax
jl 0x422e41
cmp eax, 0x40
jge 0x422e41
mov eax, dword [eax*4 + 0x473308]
test eax, eax
jne 0x422e46
mov eax, 0x473408
push ebx
push eax
call ebp
mov eax, dword [esi + 0x4c]
cmp eax, 0xfffffffe
jne 0x422e5c
mov ecx, 0x473308
call fcn.0041df20
test eax, eax
jl 0x422e72
cmp eax, 0x40
jge 0x422e72
mov eax, dword [eax*4 + 0x473308]
test eax, eax
mov edi, eax
jne 0x422e77
mov edi, 0x473408
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea ecx, [esp + 0x18]
push ecx
call esi
lea edx, [esp + 0x1c]
push 0x2e
push edx
mov edi, eax
call esi
add esp, 0x10
cmp eax, edi
jbe 0x422ec8
lea eax, [esp + 0x14]
push 0x2e
push eax
call esi
add esp, 8
mov byte [eax], 0
mov al, byte [0x475aa8]
mov edi, str..bak
test al, al
jne 0x422edb
mov edi, str..___
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x4c]
cmp eax, 0xfffffffe
jne 0x422f25
mov ecx, 0x473308
call fcn.0041df20
test eax, eax
jl 0x422f39
cmp eax, 0x40
jge 0x422f39
mov eax, dword [eax*4 + 0x473308]
test eax, eax
jne 0x422f3e
mov eax, 0x473408
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x423039
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x4c]
cmp eax, 0xfffffffe
jne 0x422f68
mov ecx, 0x473308
call fcn.0041df20
test eax, eax
jl 0x422f7e
cmp eax, 0x40
jge 0x422f7e
mov eax, dword [eax*4 + 0x473308]
test eax, eax
mov esi, eax
jne 0x422f83
mov esi, 0x473408
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044c500
mov ecx, dword [0x483a50]
add esp, 4
lea edx, [esp + 0x95c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ecx + 0x594]
push eax
push esi
push ecx
push str._s:__s_n_n_s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [0x483a50]
add esp, 0x14
lea edx, [esp + 0x95c]
mov ecx, dword [eax + 0x594]
push 0x2010
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov al, byte [edi + 0xcc7]
test al, al
je 0x423016
mov eax, dword [edi + 0x4c]
or ebx, 1
cmp eax, 0xfffffffe
jne 0x422ff9
mov ecx, 0x473308
call fcn.0041df20
test eax, eax
jl 0x42300d
cmp eax, 0x40
jge 0x42300d
mov eax, dword [eax*4 + 0x473308]
test eax, eax
jne 0x423012
mov eax, 0x473408
push ebx
push eax
call ebp
mov eax, dword [edi + 0x44]
mov dword [eax + 0xf548], 0x10
mov byte [edi + 0x474], 0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x114c
ret 4
mov esi, dword [0x47340c]
mov cl, byte [0x472b1c]
xor eax, eax
mov byte [esp + 0x418], cl
mov ecx, 0x100
lea edi, [esp + 0x419]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov cl, byte [eax + 0x482]
test cl, cl
jne 0x4230e5
mov eax, dword [eax + 0x4c]
cmp eax, 0xfffffffe
jne 0x4230bb
test esi, esi
jl 0x423094
cmp esi, 0x40
jge 0x423094
mov eax, dword [esi*4 + 0x473308]
test eax, eax
je 0x423094
mov cl, byte [eax + 0x81a]
test cl, cl
je 0x423094
mov eax, esi
jmp 0x4230bb
xor eax, eax
mov ecx, 0x473308
mov edx, dword [ecx]
test edx, edx
je 0x4230af
mov bl, byte [edx + 0x81a]
test bl, bl
jne 0x423157
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x42309b
or eax, 0xffffffff
test eax, eax
jl 0x4230cf
cmp eax, 0x40
jge 0x4230cf
mov eax, dword [eax*4 + 0x473308]
test eax, eax
jne 0x4230d4
mov eax, 0x473408
lea edx, [esp + 0x418]
push eax
push edx
call fcn.0044b3e0
add esp, 8
mov eax, dword [0x483a50]
or ecx, 0xffffffff
mov edi, dword [eax + 0x574]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x418]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 4]
push eax
call sub.MFC42.DLL_operatornew
mov ebx, dword [esp + 0x14]
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x42319c
mov al, byte [ebx + 0x482]
test al, al
je 0x423161
mov ecx, dword [0x483a50]
xor eax, eax
mov edi, dword [ecx + 0x574]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x423185
mov dword [0x47340c], eax
jmp 0x4230bb
mov ecx, dword [0x483a50]
lea eax, [esp + 0x418]
push eax
mov edx, dword [ecx + 0x574]
push edx
push str._s:__s
push ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push ebp
call fcn.0043ab20
push ebp
mov dword [ebx + 0xcc0], eax
call sub.MFC42.DLL_operatordelete
add esp, 8
jmp 0x4231a6
mov dword [ebx + 0xcc0], 0
mov ecx, ebx
mov byte [ebx + 0xcc9], 1
call fcn.00429df0
mov eax, dword [esp + 0x1160]
mov ecx, dword [ebx + 0x44]
and eax, 0xff
mov dword [ecx + 0xf568], eax
mov edx, dword [ebx + 0x44]
mov eax, dword [edx + 0xf568]
test eax, eax
je 0x4231f8
push 0
push 0
push 0
push 0
push ebx
push 0x423230
call sub.MFC42.DLL_AfxBeginThread
test eax, eax
setne al
test al, al
mov byte [ebx + 0xcca], al
jne 0x4231ff
mov ecx, ebx
call fcn.004234d0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x114c
ret 4