Function at 0x409160
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9aa5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x4c900c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebx + 8]
xor al, al
cmp dword [edi + 0x10], 0
je 0x4093ea
push 0x5c
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x78]
push 1
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], al
call fcn.00412b40
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x4091e4
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
push ecx
lea ecx, [ebp - 0x78]
call fcn.00416350
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x50], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push edi
lea edx, [ebp - 0x60]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00414160
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x40926f
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409265
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4092ab
push edx
push ecx
call fcn.004a7acb
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x4092bb
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4092b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4092b1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004a7acb
add esp, 8
xor al, al
mov dword [ebp - 0x68], 0
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
mov byte [ebp - 0x45], al
je 0x4093b1
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.00402c10
test eax, eax
je 0x4092fc
mov ecx, eax
call fcn.00402cd0
jmp 0x4093ae
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 2
jne 0x4093ae
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.00403190
mov byte [ebp - 4], 5
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push 0
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409339
mov al, 1
mov byte [ebp - 0x45], al
jmp 0x409372
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Error_creating_directory
call fcn.004137f0
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
push 0x413a30
cmovae edx, dword [ebp - 0x2c]
push ecx
push dword [ebp - 0x1c]
mov ecx, eax
call fcn.00416400
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov al, byte [ebp - 0x45]
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4093b1
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4093a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4093a4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004a7acb
add esp, 8
mov al, byte [ebp - 0x45]
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4093ea
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4093dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4093dd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004a7acb
mov al, byte [ebp - 0x45]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a7a88
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4