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

Disassembly:
push 0xffffffffffffffff
push 0x43c455
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4c3740]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c3740]
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.00409e30
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.0040af70
push str.AddrPool
mov ecx, esi
call dword [0x43e29c]
mov eax, dword [esp + 0x54]
mov ebp, 8
cmp dword [esp + 0x68], ebp
jae 0x40aaec
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or esi, 0xffffffff
cmp eax, esi
jne 0x40ab18
cmp dword [esp + 0x68], ebp
mov eax, dword [esp + 0x54]
jae 0x40ab08
lea eax, [esp + 0x54]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ac31
push 0x4b37ec
lea ecx, [esp + 0x54]
call dword [0x43e29c]
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x54]
call dword [0x43e2a0]
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 [0x43e29c]
cmp dword [esp + 0x68], ebp
mov eax, dword [esp + 0x54]
jae 0x40ab8f
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 0x40ac31
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 0x40ac5e
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 0x40ad4b
mov eax, dword [edi + 0x24]
mov esi, dword [eax]
lea ebx, [edi + 0x20]
mov edi, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], eax
test edi, edi
je 0x40ac7c
cmp edi, ebx
je 0x40ac82
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x28]
je 0x40ad18
test edi, edi
jne 0x40ac96
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 4]
jne 0x40aca1
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 0x40ace3
lea esi, [esp + 0x1c]
call fcn.0040c650
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jmp 0x40ac74
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 0x40ad4b
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.00437634
add esp, 0xe0
ret