Function at 0x406fa0
Capabilities:
Create directory
Get file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x430b55
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4b3774]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b3774]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 4]
mov bp, word [edi + 8]
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
sub esp, 8
mov eax, esp
xor ebx, ebx
mov dword [esp + 0xf8], ebx
mov dword [eax], esi
lea esi, [esp + 0x90]
mov word [eax + 4], bp
call fcn.00406380
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea esi, [esp + 0x50]
mov byte [esp + 0xf0], 1
call fcn.004074d0
push str.AddrPool
mov ecx, esi
call dword [0x431224]
mov eax, dword [esp + 0x54]
mov ebp, 8
cmp dword [esp + 0x68], ebp
jae 0x40704c
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
jne 0x407078
cmp dword [esp + 0x68], ebp
mov eax, dword [esp + 0x54]
jae 0x407068
lea eax, [esp + 0x54]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407191
push 0x4a6618
lea ecx, [esp + 0x54]
call dword [0x431224]
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x54]
call dword [0x431228]
push 0x3e
lea ecx, [esp + 0xaa]
push ebx
push ecx
mov word [esp + 0xb0], bx
call sub.MSVCR80.dll_memset
mov edx, dword [edi]
and edx, dword [edi + 0xc]
lea eax, [esp + 0xb0]
push edx
push str._08x
push 0x20
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
add esp, 0x1c
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x54]
call dword [0x431224]
cmp dword [esp + 0x68], ebp
mov eax, dword [esp + 0x54]
jae 0x4070ef
lea eax, [esp + 0x54]
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, esi
je 0x407191
mov ecx, dword [edi]
mov edx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebx
mov dword [esp + 0x80], edx
mov edx, dword [edi + 0x14]
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x7c], edx
push 0x1c
lea edx, [esp + 0x78]
mov dword [esp + 0x84], eax
mov eax, dword [edi + 0xc]
push edx
push ebp
mov byte [esp + 0x80], 0x61
mov byte [esp + 0x81], 0
mov byte [esp + 0x82], 0x64
mov byte [esp + 0x83], 0x68
mov byte [esp + 0x84], 0x63
mov byte [esp + 0x85], 0x70
mov dword [esp + 0x98], eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x4071be
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x50]
mov byte [esp + 0xf0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x88]
mov dword [esp + 0xf0], esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x4072ab
mov eax, dword [edi + 0x28]
mov esi, dword [eax]
lea ebx, [edi + 0x24]
mov edi, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], eax
test edi, edi
je 0x4071dc
cmp edi, ebx
je 0x4071e2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x28]
je 0x407278
test edi, edi
jne 0x4071f6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 4]
jne 0x407201
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push 0
add esi, 0x18
mov ecx, 8
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push 0x20
lea edx, [esp + 0x38]
push edx
push ebp
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407243
lea esi, [esp + 0x1c]
call fcn.00408bb0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jmp 0x4071d4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x50]
mov byte [esp + 0xf0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x88]
mov dword [esp + 0xf0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x4072ab
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x50]
mov byte [esp + 0xf0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x88]
mov dword [esp + 0xf0], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.0042c614
add esp, 0xe0
ret