Function at 0x408f80
Capabilities:
Create directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x463cd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0x1c]
call dword [0x46e148]
mov eax, dword [ebx + 0xa0]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x90], esi
jne 0x408fc1
mov dword [esp + 0x20], esi
jmp 0x408fd0
mov ecx, dword [ebx + 0xa4]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x20], esi
mov dword [esp + 0x30], esi
jle 0x4094c1
mov dword [esp + 0x34], esi
mov eax, dword [ebx + 0xa0]
mov ecx, dword [esp + 0x30]
mov edi, dword [eax + ecx*4]
push edi
lea ecx, [esp + 0x70]
mov dword [esp + 0x58], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov esi, eax
lea ebp, [ebx + 0xc8]
push esi
mov ecx, ebp
mov byte [esp + 0x94], 1
call fcn.0042b0b0
cmp eax, dword [ebp + 4]
mov dword [esp + 0x38], eax
je 0x409037
add eax, 0xc
push eax
push esi
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
jne 0x409037
lea eax, [esp + 0x38]
jmp 0x409042
mov edx, dword [ebp + 4]
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x3c]
mov esi, dword [eax]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x90], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebx + 0xcc]
xor ebp, ebp
cmp esi, eax
je 0x409067
mov ebp, 1
mov ecx, ebx
call fcn.0040c3f0
test eax, eax
jne 0x40956d
push 0x46f7fc
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea eax, [edi + 0x40]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x94], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esp + 0x58]
mov byte [esp + 0x90], 3
call sub.MFC71.DLL_CStringArray::CStringArray
mov byte [esp + 0x90], 4
call fcn.004156f0
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
call fcn.00415b80
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00414e40
add esp, 0xc
lea ecx, [esp + 0x18]
call dword [0x46e148]
mov ecx, 0x4b3a40
mov byte [esp + 0x90], 5
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea edx, [esp + 0x1c]
push 0x470168
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
mov eax, dword [esp + 0x6c]
add esp, 0xc
xor esi, esi
test eax, eax
jle 0x40916d
lea ecx, [ecx]
test esi, esi
jl 0x4094d6
cmp esi, eax
jge 0x4094d6
mov eax, dword [esp + 0x5c]
lea eax, [eax + esi*4]
push eax
lea ecx, [esp + 0x1c]
call dword [0x46e140]
push 0
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x46f7fc
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
mov eax, dword [esp + 0x60]
inc esi
cmp esi, eax
jl 0x409120
push 0
push 1
push 0
push 0
call fcn.00406e70
add esp, 0x10
test ebp, ebp
jne 0x4091fa
lea ecx, [esp + 0x2c]
call dword [0x46e148]
push 0x30
push str.IDS_MESSAGE
mov byte [esp + 0x98], 6
call fcn.0040ee00
add esp, 8
push eax
lea ecx, [esp + 0x30]
call dword [0x46e374]
push 0x100
call sub.MFC71.DLL_operator_new
add esp, 4
push edi
lea ecx, [esp + 0x30]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
push str._s__s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebx + 0x58]
add esp, 0x10
push esi
push ebp
push 0x46d
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x90], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x34]
add eax, 0x14
mov dword [esp + 0x34], eax
cdq
idiv dword [esp + 0x20]
push 0
push 0x64
add eax, 0x46
cdq
push edx
push eax
call fcn.00406ef0
add esp, 0x10
test ebp, ebp
jne 0x409404
lea ecx, [esp + 0x14]
call dword [0x46e148]
push str.BossRan_
lea edx, [esp + 0x4c]
push 0x4b3a44
push edx
mov byte [esp + 0x9c], 7
call fcn.00401590
push 0x4b3a4c
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0xa8], 8
call fcn.00402b10
push edi
push eax
lea ecx, [esp + 0x60]
push ecx
mov byte [esp + 0xb4], 9
call fcn.00401590
add esp, 0x24
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 0xa
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x40]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x44]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x48]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call dword [0x46e148]
push edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 0xb
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea edx, [esp + 0x18]
push 0x46f7ec
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
push 0x2e
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x94], 0xc
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x90], 0xb
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x80
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
call esi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call fcn.00448510
add esp, 8
test eax, eax
jne 0x4093d6
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
push 0x2e
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 0xd
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x50]
mov byte [esp + 0x90], 0xb
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push ebp
push str..dll
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find]
cmp eax, 0xffffffff
jne 0x4093d6
mov ecx, ebx
call fcn.0040c3f0
test eax, eax
je 0x4094db
push 0x80
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call esi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
mov byte [esp + 0x90], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0
push 1
push 0
push 1
call fcn.00406e70
mov edx, dword [ebx + 0xbc]
lea ecx, [ebx + 0xb8]
add esp, 0x10
test edx, edx
jne 0x409428
xor esi, esi
jmp 0x409430
mov esi, dword [ecx + 8]
sub esi, edx
sar esi, 2
test edx, edx
je 0x40944d
mov eax, dword [ecx + 0xc]
sub eax, edx
sar eax, 2
cmp esi, eax
jae 0x40944d
mov eax, dword [ecx + 8]
mov dword [eax], edi
add eax, 4
mov dword [ecx + 8], eax
jmp 0x40945d
mov eax, dword [ecx + 8]
lea edx, [esp + 0x54]
push edx
push 1
push eax
call fcn.004076a0
mov ecx, ebx
call fcn.0040c3f0
test eax, eax
jne 0x40953e
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x58]
mov byte [esp + 0x90], 3
call fcn.00450768
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x408fe2
xor esi, esi
mov eax, dword [ebx + 0x80]
cmp eax, esi
jne 0x40957b
xor ecx, ecx
jmp 0x409586
jmp fcn.0045074a
push 0x104
call sub.MFC71.DLL_operator_new
add esp, 4
mov edi, eax
call fcn.004482e0
mov esi, 0x104
mov ecx, edi
mov dl, byte [eax]
test dl, dl
je 0x409505
mov byte [ecx], dl
inc ecx
inc eax
dec esi
jne 0x4094f6
jmp 0x409509
test esi, esi
jne 0x40950a
dec ecx
push edi
push 0
mov byte [ecx], 0
mov eax, dword [ebx + 0x58]
push 0x46d
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov eax, 1
lea ecx, [esp + 0x10]
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x58]
mov byte [esp + 0x90], 3
call fcn.00450768
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x4095b2
mov ecx, dword [ebx + 0x84]
sub ecx, eax
sar ecx, 2
mov edx, dword [ebx + 0xbc]
cmp edx, esi
jne 0x409594
xor eax, eax
jmp 0x40959f
mov eax, dword [ebx + 0xc0]
sub eax, edx
sar eax, 2
cmp ecx, eax
lea ecx, [esp + 0x1c]
jne 0x409571
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x84
ret