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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x480
push esi
push edi
mov dword [ebp - 0x220], 0
mov ecx, 0x87
xor eax, eax
lea edi, [ebp - 0x21c]
rep stosd dword es:[edi], eax
mov al, byte [0x414b08]
mov byte [ebp - 0x320], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x31f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00402250
add esp, 4
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov edx, dword [ebp + 8]
mov dword [0x414b04], edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
test eax, eax
jne 0x4010a9
push 0x7d0
mov eax, dword [ebp + 8]
push eax
call fcn.00402100
add esp, 8
mov word [0x414b00], ax
movzx ecx, word [0x414b00]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
push 0
push 0x100
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 4], eax
lea edx, [ebp - 0x320]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401560
add esp, 8
push 0x100
lea ecx, [ebp - 0x428]
push ecx
push 0xfa2
mov edx, dword [0x414b04]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x401199
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
test eax, eax
je 0x401135
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xffff
movzx eax, ax
and eax, 0xff
movzx ecx, al
cmp ecx, 3
jle 0x401135
push str.WinNT
lea edx, [ebp - 0x428]
push edx
call fcn.0041011e
add esp, 8
test eax, eax
je 0x40115c
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
test eax, eax
jne 0x401199
push str.Win95
lea eax, [ebp - 0x428]
push eax
call fcn.0041011e
add esp, 8
test eax, eax
jne 0x401199
push 0x100
lea ecx, [ebp - 0x428]
push ecx
push 0xfa7
mov edx, dword [0x414b04]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
push 0
lea eax, [ebp - 0x428]
push eax
mov ecx, dword [ebp - 0x324]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40154c
push 0x104
lea edx, [ebp - 0x110]
push edx
push 0xfa0
mov eax, dword [0x414b04]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x40135b
mov dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x42c], ecx
mov edx, dword [ebp - 0x42c]
inc edx
mov dword [ebp - 0x430], edx
mov eax, dword [ebp - 0x42c]
mov cl, byte [eax]
mov byte [ebp - 0x431], cl
inc dword [ebp - 0x42c]
cmp byte [ebp - 0x431], 0
jne 0x4011e1
mov edx, dword [ebp - 0x42c]
sub edx, dword [ebp - 0x430]
mov dword [ebp - 0x438], edx
cmp dword [ebp - 0x438], 0
je 0x40135b
mov dword [ebp - 0x43c], 0x413050
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x440], eax
mov ecx, dword [ebp - 0x43c]
mov dl, byte [ecx]
mov byte [ebp - 0x441], dl
inc dword [ebp - 0x43c]
cmp byte [ebp - 0x441], 0
jne 0x401233
mov eax, dword [ebp - 0x43c]
sub eax, dword [ebp - 0x440]
mov ecx, dword [ebp - 0x440]
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x44c], eax
lea edx, [ebp - 0x110]
add edx, 0xffffffff
mov dword [ebp - 0x450], edx
mov eax, dword [ebp - 0x450]
mov cl, byte [eax + 1]
mov byte [ebp - 0x451], cl
inc dword [ebp - 0x450]
cmp byte [ebp - 0x451], 0
jne 0x40127d
mov edi, dword [ebp - 0x450]
mov esi, dword [ebp - 0x448]
mov edx, dword [ebp - 0x44c]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x320]
mov dword [ebp - 0x458], eax
mov ecx, dword [ebp - 0x458]
mov dword [ebp - 0x45c], ecx
mov edx, dword [ebp - 0x458]
mov al, byte [edx]
mov byte [ebp - 0x45d], al
inc dword [ebp - 0x458]
cmp byte [ebp - 0x45d], 0
jne 0x4012d3
mov ecx, dword [ebp - 0x458]
sub ecx, dword [ebp - 0x45c]
mov edx, dword [ebp - 0x45c]
mov dword [ebp - 0x464], edx
mov dword [ebp - 0x468], ecx
lea eax, [ebp - 0x110]
add eax, 0xffffffff
mov dword [ebp - 0x46c], eax
mov ecx, dword [ebp - 0x46c]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x46d], dl
inc dword [ebp - 0x46c]
cmp byte [ebp - 0x46d], 0
jne 0x40131d
mov edi, dword [ebp - 0x46c]
mov esi, dword [ebp - 0x464]
mov eax, dword [ebp - 0x468]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x100
lea ecx, [ebp - 0x428]
push ecx
push 0xfa1
mov edx, dword [0x414b04]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x4013ef
push 0x6b
lea eax, [ebp - 0x428]
push eax
call fcn.00408aa0
add esp, 8
test eax, eax
jne 0x4013a7
push 0x4b
lea ecx, [ebp - 0x428]
push ecx
call fcn.00408aa0
add esp, 8
test eax, eax
je 0x4013b6
mov edx, dword [ebp - 0x21c]
and edx, 0xfffffffd
mov dword [ebp - 0x21c], edx
push 0x71
lea eax, [ebp - 0x428]
push eax
call fcn.00408aa0
add esp, 8
test eax, eax
jne 0x4013e0
push 0x51
lea ecx, [ebp - 0x428]
push ecx
call fcn.00408aa0
add esp, 8
test eax, eax
je 0x4013ef
mov edx, dword [ebp - 0x21c]
and edx, 0xfffffff9
mov dword [ebp - 0x21c], edx
lea eax, [ebp - 0x428]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40141b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
call fcn.00401f10
add esp, 8
jmp 0x40154c
mov ecx, dword [ebp - 0x21c]
and ecx, 4
test ecx, ecx
je 0x401486
lea edx, [ebp - 0x214]
push edx
push 0
push 0x413054
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40146b
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40146b
push 0
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401481
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
call fcn.00401f10
add esp, 8
jmp 0x40154c
jmp 0x40151b
lea eax, [ebp - 0x428]
mov dword [ebp - 0x474], eax
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x478], ecx
mov edx, dword [ebp - 0x478]
mov dword [ebp - 0x47c], edx
mov eax, dword [ebp - 0x474]
mov cl, byte [eax]
mov byte [ebp - 0x47d], cl
mov edx, dword [ebp - 0x478]
mov al, byte [ebp - 0x47d]
mov byte [edx], al
mov ecx, dword [ebp - 0x474]
add ecx, 1
mov dword [ebp - 0x474], ecx
mov edx, dword [ebp - 0x478]
add edx, 1
mov dword [ebp - 0x478], edx
cmp byte [ebp - 0x47d], 0
jne 0x4014aa
lea eax, [ebp - 0x214]
push eax
push 0x401730
mov ecx, dword [ebp - 0x324]
push ecx
push 0x7d1
mov edx, dword [0x414b04]
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
je 0x40151b
xor eax, eax
jmp 0x40154c
lea eax, [ebp - 0x220]
push eax
push 0x4018a0
mov ecx, dword [ebp - 0x324]
push ecx
push 0x7d0
mov edx, dword [0x414b04]
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10