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

Disassembly:
push 0xffffffffffffffff
push 0x43c1f1
mov eax, dword fs:[0]
push eax
sub esp, 0x5f0
mov eax, dword [0x44c274]
xor eax, esp
mov dword [esp + 0x5ec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44c274]
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.0042f930
push 0x104
lea eax, [esp + 0x294]
push 0
push eax
mov dword [esp + 0x618], 0
call fcn.00414950
push 0x104
lea ecx, [esp + 0x98]
push 0
push ecx
call fcn.00414950
push 0x104
lea edx, [esp + 0x3b0]
push 0
push edx
call fcn.00414950
push 0x64
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00414950
push 0x64
lea ecx, [esp + 0x4cc]
push 0
push ecx
call fcn.00414950
push 0x104
lea edx, [esp + 0x1cc]
push 0
push edx
call fcn.00414950
mov esi, dword [esp + 0x660]
lea eax, [esi - 1]
add esp, 0x48
cmp eax, 0x1f
ja case.0x428666.1
movzx eax, byte [eax + 0x428ce8]
jmp dword [eax*4 + 0x428ccc]
push str.accredit_2001.dat
push 0x64
lea edx, [esp + 0x2c]
push edx
jmp 0x4286b8
push str.accredit_4001.dat
push 0x64
lea eax, [esp + 0x2c]
push eax
jmp 0x4286b8
push str.accredit_8001.dat
jmp 0x4286b1
push str.accredit_16001.dat
push 0x64
lea edx, [esp + 0x2c]
push edx
jmp 0x4286b8
push str.accredit_32001.dat
push 0x64
lea eax, [esp + 0x2c]
push eax
jmp 0x4286b8
push str.accredit_1001.dat
push 0x64
lea ecx, [esp + 0x2c]
push ecx
call fcn.0041cedb
add esp, 0xc
cmp esi, 0x10
jne 0x428822
lea ecx, [esp + 0x14]
call fcn.0042f860
push eax
lea edx, [esp + 0x8c]
push 0x104
push edx
call fcn.0041cedb
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x98]
push 0x104
push ecx
call fcn.0041f4a9
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 0x428734
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.0041f4a9
add esp, 0xc
lea ecx, [esp + 0x290]
push ecx
call ebp
lea edx, [esp + 0x290]
push edx
lea ecx, [esp + 0x18]
call fcn.0042f440
mov esi, eax
or ebx, 0xffffffff
test esi, esi
je 0x4287f0
cmp esi, ebx
je 0x4287f0
mov eax, dword [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.0042f4a0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4287f0
lea ecx, [esp + 0x1a]
call fcn.0042f930
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x294]
push edx
lea ecx, [esp + 0x22]
mov byte [esp + 0x614], 1
call fcn.0042f9d0
mov esi, eax
lea eax, [esp + 0x290]
push eax
call ebp
test esi, esi
jne 0x4287fc
lea ecx, [esp + 0x1a]
mov byte [esp + 0x60c], 0
call fcn.0042f410
mov dword [esp + 0x60c], ebx
jmp 0x428a5d
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.0042f410
jmp 0x428cb1
push str.accredit.dat
lea edx, [esp + 0x49c]
push 0x64
push edx
call fcn.0041cedb
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.0041f4a9
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.0041f4a9
add esp, 0xc
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x18]
call fcn.0042f480
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jne 0x4288bc
push 0
lea edx, [esp + 0x8c]
push edx
call edi
push 0x442b00
lea eax, [esp + 0x8c]
push 0x104
push eax
call fcn.0041f4a9
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x98]
push 0x104
push edx
call fcn.0041f4a9
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.0041f4a9
add esp, 0xc
lea edx, [esp + 0x394]
push edx
lea ecx, [esp + 0x18]
call fcn.0042f480
test eax, eax
jne 0x428936
push eax
lea eax, [esp + 0x398]
push eax
call edi
push 0x442b00
lea ecx, [esp + 0x398]
push 0x104
push ecx
call fcn.0041f4a9
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3a4]
push 0x104
push eax
call fcn.0041f4a9
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 0x42899e
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 0x4289c9
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.0042f440
mov edi, eax
test edi, edi
je 0x428a52
cmp edi, 0xffffffff
je 0x428a52
push ebx
push edi
lea ecx, [esp + 0x1c]
call fcn.0042f4a0
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x428a52
lea ecx, [esp + 0x1b]
call fcn.0042f930
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x294]
push ecx
lea ecx, [esp + 0x23]
mov byte [esp + 0x614], 2
call fcn.0042f9d0
lea edx, [esp + 0x290]
push edx
mov edi, eax
call ebp
test edi, edi
jne 0x428a92
lea ecx, [esp + 0x1b]
mov byte [esp + 0x60c], 0
call fcn.0042f410
mov dword [esp + 0x60c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0042f410
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.004144f2
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.0041f4a9
lea ecx, [esp + 0x4a4]
push ecx
lea edx, [esp + 0x19c]
push 0x104
push edx
call fcn.0041f4a9
add esp, 0x18
lea eax, [esp + 0x18c]
push eax
lea ecx, [esp + 0x18]
call sub.SHLWAPI.dll_PathFileExistsA
test eax, eax
je 0x428b20
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.00414950
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.0041f4a9
lea eax, [esp + 0x4a4]
push eax
lea ecx, [esp + 0x19c]
push 0x104
push ecx
call fcn.0041f4a9
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.00414950
mov ecx, dword [esp + 0x28]
add esp, 0xc
push 0x104
lea eax, [esp + 0x500]
push eax
call fcn.00427af0
test eax, eax
je 0x428c85
lea eax, [esp + 0x4fc]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x428c00
sub eax, edx
je 0x428c85
push 0x442b00
lea ecx, [esp + 0x500]
push 0x104
push ecx
call fcn.0041f4a9
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x50c]
push 0x104
push eax
call fcn.0041f4a9
add esp, 0x18
lea ecx, [esp + 0x4fc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0042f480
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.0042f410
or ebx, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x60c], ebx
call fcn.0042f410
mov eax, 1
jmp 0x428a68