Function at 0x413140
Capabilities:
Create directory
Delete directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x62c]
push ebx
sub esp, 0x634
mov eax, dword [0x448004]
mov dword [ebp - 0x62c], 0xdeadbeef
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x54]
sub esp, 0xc
mov ebx, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x3e0
xor eax, eax
cmp ebx, 0x80070057
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.004077c0
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x3e1
mov eax, dword [ebp - 0x62c]
mov dword [esp + 4], str.got__p_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [0x448004]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [edx + 0x54]
sub esp, 0xc
mov ebx, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x3e4
xor eax, eax
cmp ebx, 0x80004003
sete al
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov edi, dword [sym.imp.oleaut32.dll_SysAllocString]
mov dword [esp], str.dummy
call edi
mov edx, dword [0x448004]
mov dword [ebp - 0x628], eax
sub esp, 4
mov ecx, dword [edx]
mov dword [esp], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [ecx + 0x54]
sub esp, 0xc
mov ebx, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x3ea
xor eax, eax
cmp ebx, 0x80004003
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.004077c0
mov eax, dword [0x448004]
mov dword [ebp - 0x62c], 0xdeadbeef
mov edx, dword [eax]
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x628]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x54]
sub esp, 0xc
mov ebx, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x3ee
xor eax, eax
cmp ebx, 0x800a004c
sete al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.004077c0
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x3ef
mov eax, dword [ebp - 0x62c]
mov dword [esp + 4], str.got__p_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x628]
mov ebx, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [esp], eax
call ebx
lea edx, [ebp - 0x624]
sub esp, 4
mov dword [esp], edx
mov dword [esp + 4], 0x104
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
lea edx, [ebp - 0x624]
sub esp, 8
mov dword [esp], edx
call edi
mov edx, dword [0x448004]
mov dword [ebp - 0x628], eax
sub esp, 4
mov ecx, dword [edx]
mov dword [esp], edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
call dword [ecx + 0x54]
sub esp, 0xc
mov dword [ebp - 0x630], eax
call fcn.00416600
mov edx, dword [ebp - 0x630]
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x3f5
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.004077c0
mov eax, dword [ebp - 0x628]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x62c]
mov ecx, 0x3f7
mov edx, 0x41c998
sub esp, 4
call fcn.004077e0
mov eax, dword [ebp - 0x62c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
lea eax, [ebp - 0x214]
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
lea edx, [ebp - 0x41c]
sub esp, 8
mov dword [esp + 4], edx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
mov eax, dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
lea edx, [ebp - 0x41c]
sub esp, 8
mov dword [esp], edx
mov dword [ebp - 0x630], eax
call eax
sub esp, 4
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x3fd
mov eax, 0x41c354
mov ecx, eax
shr ecx, 0x10
je 0x413640
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x41c354
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x41348d
mov eax, 0x41c354
call fcn.00406dc0
mov edx, eax
mov dword [ebp - 0x634], edx
mov dword [esp + 4], 0
mov dword [esp], 0x41c354
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x634]
sub esp, 8
mov dword [esp + 8], edx
mov dword [esp + 4], str.CreateDirectory__s__failed_n
mov dword [esp], eax
call fcn.004077c0
mov dword [esp], 0x41c354
call edi
mov edx, dword [0x448004]
mov dword [ebp - 0x628], eax
sub esp, 4
mov ecx, dword [edx]
mov dword [esp], edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
call dword [ecx + 0x54]
sub esp, 0xc
mov esi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x400
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.004077c0
mov eax, dword [ebp - 0x628]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x62c]
lea ecx, [ebp - 0x628]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 8
mov esi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x403
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.004077c0
call fcn.00416600
mov dword [eax], 0x41b595
mov edi, dword [ebp - 0x628]
mov dword [eax + 4], 0x404
test edi, edi
je 0x413690
mov eax, edi
shr eax, 0x10
je 0x413660
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x413680
mov eax, edi
call fcn.00406dc0
mov edi, dword [ebp - 0x628]
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.shlwapi.dll_PathIsRelativeW]
sub esp, 4
test eax, eax
sete al
mov dword [esp + 8], esi
movzx eax, al
mov dword [esp + 4], str.path__s_is_relative._n
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x628]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x62c]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov dword [esp], 0x41c354
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x214]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x630]
call eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, ax
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00406a40
mov edx, eax
jmp 0x41348d
movzx edi, di
mov dword [esp], str._04x
mov dword [esp + 4], edi
call fcn.00406a40
mov edi, dword [ebp - 0x628]
mov esi, eax
jmp 0x4135cd
mov edi, dword [ebp - 0x628]
mov esi, str._invalid_
jmp 0x4135cd
mov esi, str._null_
jmp 0x4135cd