Function at 0x4eb580
Capabilities:
Create directory
Delete directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x41c]
lea esi, [ebp - 0x624]
push ebx
sub esp, 0x644
mov dword [esp + 4], edi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
xor eax, eax
sub esp, 8
nop
movzx edx, word [edi + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x4eb5b0
cmp word [ebp - 0x624], 0
mov edx, esi
je 0x4eb5d9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4eb5d0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str.LongDirectoryName]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4eb5e0
cmp word [ebp - 0x624], 0
mov edx, esi
je 0x4eb609
nop
add edx, 2
cmp word [edx], 0
jne 0x4eb600
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x5ea9e4]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4eb610
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x54e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.Directory_was_not_created._LastError___ld_n
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.004e88d0
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + str.__]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x4eb670
cmp word [ebp - 0x624], 0
mov edx, esi
je 0x4eb699
nop
add edx, 2
cmp word [edx], 0
jne 0x4eb690
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4eb6a0
cmp word [ebp - 0x624], 0
mov edx, esi
je 0x4eb6c9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4eb6c0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str.LongDirectoryName]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4eb6d0
cmp word [ebp - 0x624], 0
mov edx, esi
je 0x4eb6f9
nop
add edx, 2
cmp word [edx], 0
jne 0x4eb6f0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x5ea9e4]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4eb700
mov eax, dword [sym.imp.kernel32.dll_GetShortPathNameW]
xor edx, edx
lea ebx, [ebp - 0x214]
mov word [ebp - 0x214], dx
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [ebp - 0x628], eax
call eax
sub esp, 0xc
mov dword [ebp - 0x62c], eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x559
mov dword [esp + 4], str.GetShortPathNameW_returned_0._n
mov edx, dword [ebp - 0x62c]
mov dword [esp], edx
call fcn.004e88d0
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x4eb778
cmp word [ebp - 0x624], 0
mov edx, esi
je 0x4eb7a1
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4eb798
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str.LongDirectoryName]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4eb7a8
cmp word [ebp - 0x624], 0
mov edx, esi
je 0x4eb7d9
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x4eb7d0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x5ea9e4]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4eb7e0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
mov eax, dword [ebp - 0x628]
call eax
sub esp, 0xc
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x55f
mov dword [esp + 4], str.GetShortPathNameW_returned_0._n
mov dword [esp], edi
call fcn.004e88d0
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
mov eax, dword [ebp - 0x628]
call eax
sub esp, 0xc
mov dword [ebp - 0x62c], eax
call fcn.0057d110
mov edx, dword [ebp - 0x62c]
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x561
xor eax, eax
test edx, edx
je 0x4eb875
sub edi, 1
xor eax, eax
cmp edi, edx
sete al
mov dword [esp + 4], str.GetShortPathNameW_returned_0._n
mov dword [esp], eax
call fcn.004e88d0
cmp word [ebp - 0x214], 0
mov edx, ebx
je 0x4eb8a1
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4eb898
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x5ea9cc]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4eb8a8
mov edi, dword fs:[0x18]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
mov eax, dword [ebp - 0x628]
call eax
sub esp, 0xc
mov dword [ebp - 0x62c], eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x568
xor eax, eax
mov dword [esp + 4], str.GetShortPathNameW_should_fail_n
mov edx, dword [ebp - 0x62c]
test edx, edx
sete al
mov dword [esp], eax
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x569
mov eax, dword [edi + 0x34]
mov dword [esp + 4], 0x5e89e4
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 2
sete al
mov dword [esp], eax
call fcn.004e88d0
mov ecx, dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esp], ebx
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], 0xc0000000
mov dword [ebp - 0x634], ecx
call ecx
sub esp, 0x1c
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x56c
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp + 4], str.File_was_not_created._n
mov dword [esp], eax
call fcn.004e88d0
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], edi
mov dword [ebp - 0x630], eax
call eax
mov eax, dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
mov dword [esp], ebx
mov dword [ebp - 0x62c], eax
call eax
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x56f
mov dword [esp + 4], str.Cannot_delete_file._n
mov dword [esp], edi
call fcn.004e88d0
cmp word [ebp - 0x624], 0
mov ecx, dword [ebp - 0x634]
mov edx, esi
je 0x4eba29
lea esi, [esi]
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4eba20
xor eax, eax
lea esi, [esi]
nop
movzx edi, word [eax + 0x5ea9bc]
mov word [edx + eax], di
add eax, 2
test di, di
jne 0x4eba30
mov dword [ebp - 0x634], edx
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], 0xc0000000
mov dword [esp], esi
call ecx
sub esp, 0x1c
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x574
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp + 4], str.File_was_not_created._n
mov dword [esp], eax
call fcn.004e88d0
mov dword [esp], edi
mov eax, dword [ebp - 0x630]
call eax
sub esp, 4
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], esi
mov eax, dword [ebp - 0x628]
call eax
sub esp, 0xc
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x578
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.GetShortPathNameW_failed:__lu._n
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.004e88d0
mov edx, dword [ebp - 0x634]
xor eax, eax
nop
movzx ecx, word [eax + 0x5ea9b8]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4ebb10
mov dword [ebp - 0x630], edx
mov edi, dword fs:[0x18]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
mov eax, dword [ebp - 0x628]
call eax
sub esp, 0xc
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x57d
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 4], str.GetShortPathNameW_should_fail_n
mov dword [esp], eax
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x57e
mov eax, dword [edi + 0x34]
mov dword [esp + 4], 0x5e8a58
mov dword [esp + 8], eax
xor eax, eax
cmp dword [edi + 0x34], 0x7b
sete al
mov dword [esp], eax
call fcn.004e88d0
mov edx, dword [ebp - 0x630]
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx ecx, word [eax + 0x5ea9bc]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4ebbc0
mov dword [ebp - 0x628], edx
mov dword [esp], esi
mov eax, dword [ebp - 0x62c]
call eax
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x582
mov dword [esp], ebx
mov dword [esp + 4], str.Cannot_delete_file._n
call fcn.004e88d0
mov edx, dword [ebp - 0x628]
xor eax, eax
mov word [edx], ax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x587
mov dword [esp], ebx
mov dword [esp + 4], str.Cannot_delete_directory._n
call fcn.004e88d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret