Function at 0x427950
Capabilities:
Check if file exists
Copy file
Create directory
Delete file
Get common file path
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x439d21
mov eax, dword fs:[0]
push eax
sub esp, 0x5f0
mov eax, dword [0x448270]
xor eax, esp
mov dword [esp + 0x5ec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x448270]
xor eax, esp
push eax
lea eax, [esp + 0x604]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0x614]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], ebx
call fcn.0042cdb0
push 0x104
lea eax, [esp + 0x294]
push 0
push eax
mov dword [esp + 0x618], 0
call fcn.004141c0
push 0x104
lea ecx, [esp + 0x98]
push 0
push ecx
call fcn.004141c0
push 0x104
lea edx, [esp + 0x3b0]
push 0
push edx
call fcn.004141c0
push 0x64
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.004141c0
push 0x64
lea ecx, [esp + 0x4cc]
push 0
push ecx
call fcn.004141c0
push 0x104
lea edx, [esp + 0x1cc]
push 0
push edx
call fcn.004141c0
mov esi, dword [esp + 0x660]
lea eax, [esi - 1]
add esp, 0x48
cmp eax, 0x1f
ja case.0x427a36.1
movzx eax, byte [eax + 0x4280b8]
jmp dword [eax*4 + 0x42809c]
push str.accredit_2001.dat
push 0x64
lea edx, [esp + 0x2c]
push edx
jmp 0x427a88
push str.accredit_4001.dat
push 0x64
lea eax, [esp + 0x2c]
push eax
jmp 0x427a88
push str.accredit_8001.dat
jmp 0x427a81
push str.accredit_16001.dat
push 0x64
lea edx, [esp + 0x2c]
push edx
jmp 0x427a88
push str.accredit_32001.dat
push 0x64
lea eax, [esp + 0x2c]
push eax
jmp 0x427a88
push str.accredit_1001.dat
push 0x64
lea ecx, [esp + 0x2c]
push ecx
call fcn.0041c739
add esp, 0xc
cmp esi, 0x10
jne 0x427bf2
lea ecx, [esp + 0x14]
call fcn.0042ecd0
push eax
lea edx, [esp + 0x8c]
push 0x104
push edx
call fcn.0041c739
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x98]
push 0x104
push ecx
call fcn.0041ed58
add esp, 0x18
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x18]
call sub.SHLWAPI.dll_PathFileExistsA
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x427b04
push 0x20
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x88]
push ecx
call ebp
lea edx, [esp + 0x290]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.mylicense.lic
lea eax, [esp + 0x294]
push 0x104
push eax
call fcn.0041ed58
add esp, 0xc
lea ecx, [esp + 0x290]
push ecx
call ebp
lea edx, [esp + 0x290]
push edx
lea ecx, [esp + 0x18]
call fcn.0042e8b0
mov esi, eax
or ebx, 0xffffffff
test esi, esi
je 0x427bc0
cmp esi, ebx
je 0x427bc0
mov eax, dword [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.0042e910
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x427bc0
lea ecx, [esp + 0x1a]
call fcn.0042cdb0
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x294]
push edx
lea ecx, [esp + 0x22]
mov byte [esp + 0x614], 1
call fcn.0042ee30
mov esi, eax
lea eax, [esp + 0x290]
push eax
call ebp
test esi, esi
jne 0x427bcc
lea ecx, [esp + 0x1a]
mov byte [esp + 0x60c], 0
call fcn.00401bf0
mov dword [esp + 0x60c], ebx
jmp 0x427e2d
push 0x22
lea ecx, [esp + 0x8c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x1a]
mov byte [esp + 0x60c], 0
call fcn.00401bf0
jmp 0x428081
push str.accredit.dat
lea edx, [esp + 0x49c]
push 0x64
push edx
call fcn.0041c739
add esp, 0xc
lea eax, [esp + 0x290]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.mylicense.lic
lea ecx, [esp + 0x294]
push 0x104
push ecx
call fcn.0041ed58
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
add esp, 0xc
push 0x104
lea edx, [esp + 0x8c]
push edx
call esi
push str.System32
lea eax, [esp + 0x8c]
push 0x104
push eax
call fcn.0041ed58
add esp, 0xc
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x18]
call fcn.0042e8f0
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jne 0x427c8c
push 0
lea edx, [esp + 0x8c]
push edx
call edi
push 0x43f978
lea eax, [esp + 0x8c]
push 0x104
push eax
call fcn.0041ed58
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x98]
push 0x104
push edx
call fcn.0041ed58
add esp, 0x18
push 0x104
lea eax, [esp + 0x398]
push eax
call esi
push str.System
lea ecx, [esp + 0x398]
push 0x104
push ecx
call fcn.0041ed58
add esp, 0xc
lea edx, [esp + 0x394]
push edx
lea ecx, [esp + 0x18]
call fcn.0042e8f0
test eax, eax
jne 0x427d06
push eax
lea eax, [esp + 0x398]
push eax
call edi
push 0x43f978
lea ecx, [esp + 0x398]
push 0x104
push ecx
call fcn.0041ed58
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3a4]
push 0x104
push eax
call fcn.0041ed58
add esp, 0x18
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x18]
call sub.SHLWAPI.dll_PathFileExistsA
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x427d6e
push 0x20
lea edx, [esp + 0x8c]
push edx
call esi
lea eax, [esp + 0x88]
push eax
call ebp
lea ecx, [esp + 0x394]
push ecx
lea ecx, [esp + 0x18]
call sub.SHLWAPI.dll_PathFileExistsA
test eax, eax
je 0x427d99
push 0x20
lea edx, [esp + 0x398]
push edx
call esi
lea eax, [esp + 0x394]
push eax
call ebp
lea ecx, [esp + 0x290]
push ecx
call ebp
lea edx, [esp + 0x290]
push edx
lea ecx, [esp + 0x18]
call fcn.0042e8b0
mov edi, eax
test edi, edi
je 0x427e22
cmp edi, 0xffffffff
je 0x427e22
push ebx
push edi
lea ecx, [esp + 0x1c]
call fcn.0042e910
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x427e22
lea ecx, [esp + 0x1b]
call fcn.0042cdb0
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x294]
push ecx
lea ecx, [esp + 0x23]
mov byte [esp + 0x614], 2
call fcn.0042ee30
lea edx, [esp + 0x290]
push edx
mov edi, eax
call ebp
test edi, edi
jne 0x427e62
lea ecx, [esp + 0x1b]
mov byte [esp + 0x60c], 0
call fcn.00401bf0
mov dword [esp + 0x60c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00401bf0
xor eax, eax
mov ecx, dword [esp + 0x604]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5ec]
xor ecx, esp
call fcn.00413d5c
add esp, 0x5fc
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea eax, [esp + 0x398]
push eax
lea ecx, [esp + 0x90]
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
lea edx, [esp + 0x190]
push edx
call ebx
push str.System32_
lea eax, [esp + 0x190]
push 0x104
push eax
call fcn.0041ed58
lea ecx, [esp + 0x4a4]
push ecx
lea edx, [esp + 0x19c]
push 0x104
push edx
call fcn.0041ed58
add esp, 0x18
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x18]
call sub.SHLWAPI.dll_PathFileExistsA
test eax, eax
je 0x427ef0
push 0x20
lea ecx, [esp + 0x190]
push ecx
call esi
lea edx, [esp + 0x18c]
push edx
call ebp
push 0
lea eax, [esp + 0x190]
push eax
lea ecx, [esp + 0x90]
push ecx
call edi
push 0x22
lea edx, [esp + 0x190]
push edx
call esi
push 0x104
lea eax, [esp + 0x190]
push 0
push eax
call fcn.004141c0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x190]
push ecx
call ebx
push str._system_
lea edx, [esp + 0x190]
push 0x104
push edx
call fcn.0041ed58
lea eax, [esp + 0x4a4]
push eax
lea ecx, [esp + 0x19c]
push 0x104
push ecx
call fcn.0041ed58
add esp, 0x18
push 0
lea edx, [esp + 0x190]
push edx
lea eax, [esp + 0x90]
push eax
call edi
push 0x22
lea ecx, [esp + 0x190]
push ecx
call esi
push 0x104
lea edx, [esp + 0x500]
push 0
push edx
call fcn.004141c0
mov ecx, dword [esp + 0x28]
add esp, 0xc
push 0x104
lea eax, [esp + 0x500]
push eax
call fcn.004270a0
test eax, eax
je 0x428055
lea eax, [esp + 0x4fc]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x427fd0
sub eax, edx
je 0x428055
push 0x43f978
lea ecx, [esp + 0x500]
push 0x104
push ecx
call fcn.0041ed58
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x50c]
push 0x104
push eax
call fcn.0041ed58
add esp, 0x18
lea ecx, [esp + 0x4fc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0042e8f0
push 0x20
lea edx, [esp + 0x500]
push edx
call esi
lea eax, [esp + 0x4fc]
push eax
call ebp
push 0
lea ecx, [esp + 0x500]
push ecx
lea edx, [esp + 0x90]
push edx
call edi
push 0x22
lea eax, [esp + 0x500]
push eax
call esi
push 0x22
lea ecx, [esp + 0x8c]
push ecx
call esi
push 0x22
lea edx, [esp + 0x398]
push edx
call esi
lea ecx, [esp + 0x1b]
mov byte [esp + 0x60c], 0
call fcn.00401bf0
or ebx, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x60c], ebx
call fcn.00401bf0
mov eax, 1
jmp 0x427e38