Function at 0x4afd20
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513892
mov eax, dword fs:[0]
push eax
sub esp, 0x8a4
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x814]
push eax
push 0
push 0
push 0x8023
push 0
mov dword [ebp - 0x8b0], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x4afd9d
mov dword [ebp - method.CnCrypt::SystemException.virtual_0], vtable.CnCrypt::SystemException.0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x8a8], eax
lea eax, [ebp - 0x8ac]
push 0x5511e0
push eax
call fcn.004e3ce5
mov eax, 0x10
call fcn.004e1f60
mov eax, esp
push 3
push 8
push 0x51e40c
push eax
call fcn.00405530
mov edi, eax
mov dword [ebp - 0x830], 7
push 1
xor eax, eax
mov dword [ebp - 0x834], 0
push 0x518b40
lea ecx, [ebp - 0x844]
mov word [ebp - 0x844], ax
call fcn.004051a0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x82c], ax
cmp word [ebp - 0x814], ax
jne 0x4afe1a
xor ecx, ecx
jmp 0x4afe32
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4afe23
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x82c]
call fcn.004051a0
lea eax, [ebp - 0x844]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x88c]
push eax
call fcn.00438300
push edi
push eax
lea eax, [ebp - 0x874]
mov byte [ebp - 4], 2
push eax
call fcn.00403cd0
add esp, 0x18
mov eax, dword [ebp - 0x878]
cmp eax, 8
jb 0x4afe96
inc eax
lea ecx, [ebp - 0x88c]
push eax
push dword [ebp - 0x88c]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x878], 7
mov dword [ebp - 0x87c], 0
mov word [ebp - 0x88c], ax
mov eax, dword [ebp - 0x818]
cmp eax, 8
jb 0x4afed1
inc eax
lea ecx, [ebp - 0x82c]
push eax
push dword [ebp - 0x82c]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], 0
mov word [ebp - 0x82c], ax
mov eax, dword [ebp - 0x830]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x4aff10
inc eax
lea ecx, [ebp - 0x844]
push eax
push dword [ebp - 0x844]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x830], 7
cmp dword [ebp - 0x860], 8
mov word [ebp - 0x844], ax
lea eax, [ebp - 0x874]
cmovae eax, dword [ebp - 0x874]
push 0
push eax
mov dword [ebp - 0x834], 0
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push 1
xor eax, eax
mov dword [ebp - 0x848], 7
push 0x518b40
lea ecx, [ebp - 0x85c]
mov dword [ebp - 0x84c], 0
mov word [ebp - 0x85c], ax
call fcn.004051a0
lea eax, [ebp - 0x85c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x8a4]
push eax
call fcn.004aa890
push str.Original_System_Loader
push eax
push esi
mov byte [ebp - 4], 8
call fcn.00403cd0
mov eax, dword [ebp - 0x890]
add esp, 0x18
cmp eax, 8
jb 0x4affc8
inc eax
lea ecx, [ebp - 0x8a4]
push eax
push dword [ebp - 0x8a4]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x890], 7
mov word [ebp - 0x8a4], ax
mov eax, dword [ebp - 0x848]
mov dword [ebp - 0x894], 0
cmp eax, 8
jb 0x4b0003
inc eax
lea ecx, [ebp - 0x85c]
push eax
push dword [ebp - 0x85c]
call fcn.004052a0
mov ecx, dword [ebp - 0x860]
xor eax, eax
mov dword [ebp - 0x848], 7
mov dword [ebp - 0x84c], 0
mov word [ebp - 0x85c], ax
cmp ecx, 8
jb 0x4b003e
inc ecx
push ecx
push dword [ebp - 0x874]
lea ecx, [ebp - 0x874]
call fcn.004052a0
mov eax, esi
lea esp, [ebp - 0x8bc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret 4