Function at 0x52fc60
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x110]
push ebx
lea ebx, [ebp - 0x214]
sub esp, 0x234
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_GetTempPathA]
mov dword [esp], 0x104
mov dword [ebp - 0x21c], eax
call eax
lea eax, [ebp - 0x110]
sub esp, 8
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5f45a7
mov dword [ebp - 0x218], eax
call eax
mov edi, dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 0x10
mov dword [esp], ebx
call edi
mov esi, dword [sym.imp.kernel32.dll_WritePrivateProfileStringA]
sub esp, 4
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0xdeadbeef
mov dword [ebp - 0x224], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.string
mov dword [esp + 4], 0x5f3a7a
mov dword [esp], 0
call esi
sub esp, 0x10
mov dword [ebp - 0x220], eax
call fcn.0057d110
mov ecx, dword [ebp - 0x220]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x3aa
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_FALSE__got__d_n
call fcn.00527880
call fcn.0057d110
mov edx, dword [ebp - 0x224]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x3ab
mov eax, dword [edx + 0x34]
mov dword [esp + 4], str.Expected_ERROR_FILE_NOT_FOUND__got__ld_n
mov dword [esp + 8], eax
cmp dword [edx + 0x34], 2
sete al
mov dword [ebp - 0x220], edx
movzx eax, al
mov dword [esp], eax
call fcn.00527880
call fcn.0057d110
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x3ad
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
sete al
mov dword [esp + 4], str.Expected_path_to_not_exist_n
movzx eax, al
mov dword [esp], eax
call fcn.00527880
lea ecx, [ebp - 0x110]
mov dword [esp + 0xc], ebx
mov dword [esp], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5f45a7
mov eax, dword [ebp - 0x218]
call eax
mov edx, dword [ebp - 0x220]
sub esp, 0x10
mov dword [edx + 0x34], 0xdeadbeef
mov dword [ebp - 0x224], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.string
mov dword [esp + 4], 0x5f3a7a
mov dword [esp], 0
call esi
sub esp, 0x10
mov dword [ebp - 0x220], eax
call fcn.0057d110
mov ecx, dword [ebp - 0x220]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x3b6
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_FALSE__got__d_n
call fcn.00527880
call fcn.0057d110
mov edx, dword [ebp - 0x224]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x3b7
mov eax, dword [edx + 0x34]
mov dword [esp + 4], str.Expected_ERROR_FILE_NOT_FOUND__got__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edx + 0x34], 2
sete al
mov dword [esp], eax
call fcn.00527880
call fcn.0057d110
xor ecx, ecx
mov edx, 0x5f37c0
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x3b9
mov eax, ebx
call fcn.00526bb0
mov dword [esp + 4], str.File_doesnt_match_n
mov dword [esp], eax
call fcn.00527880
mov dword [esp], ebx
call edi
sub esp, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.string
mov dword [esp + 4], 0
mov dword [esp], 0x5f3a7e
call esi
sub esp, 0x10
mov dword [ebp - 0x220], eax
call fcn.0057d110
mov edx, dword [ebp - 0x220]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x3ca
xor eax, eax
cmp edx, 1
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_TRUE__got__d_n
call fcn.00527880
mov ecx, dword [0x8f0770]
mov dword [ebp - 0x220], ecx
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x220]
test ecx, ecx
setne cl
movzx ecx, cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x52ff88
call fcn.0057d110
xor ecx, ecx
mov edx, 0x5f37c0
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x3cd
mov eax, ebx
call fcn.00526bb0
mov dword [esp + 4], str.File_doesnt_match_n
mov dword [esp], eax
call fcn.00527880
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x52ff50
mov dword [esp], ebx
call edi
sub esp, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5f3a7a
mov dword [esp], 0x5f3a7e
call esi
sub esp, 0x10
mov dword [ebp - 0x220], eax
call fcn.0057d110
mov edx, dword [ebp - 0x220]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x3e2
xor eax, eax
cmp edx, 1
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_TRUE__got__d_n
call fcn.00527880
mov ecx, dword [0x8f0770]
mov dword [ebp - 0x220], ecx
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x220]
test ecx, ecx
setne cl
movzx ecx, cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x530068
call fcn.0057d110
xor ecx, ecx
mov edx, 0x5f37c0
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x3e5
mov eax, ebx
call fcn.00526bb0
mov dword [esp + 4], str.File_doesnt_match_n
mov dword [esp], eax
call fcn.00527880
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x530030
mov dword [esp], ebx
call edi
sub esp, 4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x5f37c0
mov dword [esp + 4], 0x5f3a7a
mov dword [esp], 0x5f3a7e
call esi
sub esp, 0x10
mov dword [ebp - 0x220], eax
call fcn.0057d110
mov edx, dword [ebp - 0x220]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x3ed
xor eax, eax
cmp edx, 1
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_TRUE__got__d_n
call fcn.00527880
call fcn.0057d110
mov edx, str._App__r_nkey_r_n
mov ecx, 0xd
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x3ee
mov eax, ebx
call fcn.00526bb0
mov dword [esp + 4], str.File_doesnt_match_n
mov dword [esp], eax
call fcn.00527880
mov dword [esp], ebx
call edi
sub esp, 4
mov ecx, dword fs:[0x18]
mov dword [ecx + 0x34], 0xdeadbeef
mov dword [ebp - 0x224], ecx
mov dword [esp + 0xc], 0x5f37c0
mov dword [esp + 8], str.string
mov dword [esp + 4], 0x5f3a7a
mov dword [esp], 0x5f3a7e
call esi
sub esp, 0x10
mov dword [ebp - 0x220], eax
call fcn.0057d110
mov edx, dword [ebp - 0x220]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x3f4
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_FALSE__got__d_n
call fcn.00527880
call fcn.0057d110
mov ecx, dword [ebp - 0x224]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x3f5
mov eax, dword [ecx + 0x34]
mov dword [esp + 4], str.Expected_ERROR_ACCESS_DENIED__got__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ecx + 0x34], 5
sete al
mov dword [esp], eax
call fcn.00527880
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
sub esp, 8
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, 0x70
add eax, ebx
mov word [eax + 8], dx
mov dword [eax], 0x6e69775c
mov dword [eax + 4], 0x6d742e31
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edx, dword [ebp - 0x220]
sub esp, 0x1c
test edx, edx
jne 0x53024b
mov ecx, dword [ebp - 0x224]
cmp dword [ecx + 0x34], 5
je 0x530830
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp], ebx
call edi
sub esp, 4
mov dword [esp + 0xc], str.win1.tmp
mov dword [esp + 8], str.string
mov dword [esp + 4], 0x5f3a7a
mov dword [esp], 0x5f3a7e
call esi
sub esp, 0x10
mov dword [ebp - 0x220], eax
call fcn.0057d110
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x406
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x220]
xor eax, eax
mov dword [esp + 4], str.Expected_TRUE__got__d__le_lu_n
cmp edx, 1
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00527880
call fcn.0057d110
mov ecx, 0x13
mov edx, str._App__r_nkeystring_r_n
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x407
mov eax, ebx
call fcn.00526bb0
mov dword [esp + 4], str.File_doesnt_match_n
mov dword [esp], eax
call fcn.00527880
mov dword [esp], ebx
call edi
sub esp, 4
lea eax, [ebp - 0x110]
mov dword [esp], 0x104
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x21c]
call eax
lea eax, [ebp - 0x110]
sub esp, 8
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5f45a7
mov dword [esp], eax
mov eax, dword [ebp - 0x218]
call eax
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.string1
mov dword [esp + 4], str.key1
mov dword [esp], str.App1
call esi
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.string2
mov dword [esp + 4], str.key2
mov dword [esp], str.App1
call esi
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.string3
mov dword [esp + 4], str.key3
mov dword [esp], str.App1
call esi
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.string4
mov dword [esp + 4], str.key4
mov dword [esp], str.App2
call esi
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.string5
mov dword [esp + 4], str.key5
mov dword [esp], str.App3
call esi
sub esp, 0x10
mov dword [ebp - 0x21c], eax
call fcn.0057d110
mov edx, dword [ebp - 0x21c]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x41e
xor eax, eax
cmp edx, 1
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_TRUE__got__d_n
call fcn.00527880
call fcn.0057d110
mov ecx, 0x5e
mov edx, str._App1__r_nkey1string1_r_nkey2string2_r_nkey3string3_r_n_App2__r_nkey4string4_r_n_App3__r_nkey5string5_r_n
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x41f
mov eax, ebx
call fcn.00526bb0
mov dword [esp + 4], str.File_doesnt_match_n
mov dword [esp], eax
call fcn.00527880
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.key2
mov dword [esp], str.App1
call esi
sub esp, 0x10
mov dword [ebp - 0x21c], eax
call fcn.0057d110
mov edx, dword [ebp - 0x21c]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x42a
xor eax, eax
cmp edx, 1
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_TRUE__got__d_n
call fcn.00527880
call fcn.0057d110
mov ecx, 0x50
mov edx, str._App1__r_nkey1string1_r_nkey3string3_r_n_App2__r_nkey4string4_r_n_App3__r_nkey5string5_r_n
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x42b
mov eax, ebx
call fcn.00526bb0
mov dword [esp + 4], str.File_doesnt_match_n
mov dword [esp], eax
call fcn.00527880
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.key2
mov dword [esp], str.App1
call esi
sub esp, 0x10
mov dword [ebp - 0x21c], eax
call fcn.0057d110
mov edx, dword [ebp - 0x21c]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x436
xor eax, eax
cmp edx, 1
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_TRUE__got__d_n
call fcn.00527880
call fcn.0057d110
mov ecx, 0x50
mov edx, str._App1__r_nkey1string1_r_nkey3string3_r_n_App2__r_nkey4string4_r_n_App3__r_nkey5string5_r_n
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x437
mov eax, ebx
call fcn.00526bb0
mov dword [esp + 4], str.File_doesnt_match_n
mov dword [esp], eax
call fcn.00527880
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.string1
mov dword [esp + 4], 0
mov dword [esp], str.App1
call esi
sub esp, 0x10
mov dword [ebp - 0x21c], eax
call fcn.0057d110
mov edx, dword [ebp - 0x21c]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x43f
xor eax, eax
cmp edx, 1
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_TRUE__got__d_n
call fcn.00527880
call fcn.0057d110
mov ecx, 0x2c
mov edx, str._App2__r_nkey4string4_r_n_App3__r_nkey5string5_r_n
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x440
mov eax, ebx
call fcn.00526bb0
mov dword [esp + 4], str.File_doesnt_match_n
mov dword [esp], eax
call fcn.00527880
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.App2
call esi
sub esp, 0x10
mov dword [ebp - 0x21c], eax
call fcn.0057d110
mov edx, dword [ebp - 0x21c]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x446
xor eax, eax
cmp edx, 1
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_TRUE__got__d_n
call fcn.00527880
call fcn.0057d110
mov ecx, 0x16
mov edx, str._App3__r_nkey5string5_r_n
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x447
mov eax, ebx
call fcn.00526bb0
mov dword [esp + 4], str.File_doesnt_match_n
mov dword [esp], eax
call fcn.00527880
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.key5
mov dword [esp], str.App3
call esi
sub esp, 0x10
mov dword [ebp - 0x21c], eax
call fcn.0057d110
mov edx, dword [ebp - 0x21c]
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x44c
xor eax, eax
cmp edx, 1
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Expected_TRUE__got__d_n
call fcn.00527880
call fcn.0057d110
mov edx, str._App3__r_n
mov ecx, 8
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x44d
mov eax, ebx
call fcn.00526bb0
mov dword [esp + 4], str.File_doesnt_match_n
mov dword [esp], eax
call fcn.00527880
mov dword [esp], ebx
call edi
lea ecx, [ebp - 0x110]
sub esp, 4
mov dword [esp], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5f45a7
mov eax, dword [ebp - 0x218]
call eax
mov ecx, 0x1f
mov edx, str.Data
mov eax, ebx
sub esp, 0x10
call fcn.00527a50
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.string1
mov dword [esp + 4], str.key1
mov dword [esp], 0x5f3ee0
call esi
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x457
xor eax, eax
cmp esi, 1
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.Expected_TRUE__got__d_n
call fcn.00527880
mov esi, dword [0x8f0770]
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test esi, esi
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x53080b
call fcn.0057d110
mov ecx, 0x3b
mov edx, str.Data
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x459
mov eax, ebx
call fcn.00526bb0
mov dword [esp + 4], str.File_doesnt_match_n
mov dword [esp], eax
call fcn.00527880
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x5307d0
mov dword [esp], ebx
call edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0057d110
mov dword [eax], 0x5f3817
mov dword [eax + 4], 0x3fd
mov dword [esp], str.Not_allowed_to_create_a_file_in_the_Windows_directory_n
call fcn.00527270
jmp 0x530305