Function at 0x40d1a0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x50d76f
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x564020]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x564020]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
push 0x206
mov edi, ecx
xor esi, esi
lea ecx, [esp + 0x52]
xor eax, eax
push esi
push ecx
mov word [esp + 0x58], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x4c]
call fcn.00411550
lea edx, [esp + 0x18]
push edx
call fcn.00411dc0
lea eax, [esp + 0x4c]
mov dword [esp + 0x260], esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push eax
call edi
test eax, eax
je 0x40d26c
cmp esi, 1
jge 0x40d26c
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [esp + 0x30]
push edx
lea ebx, [esp + 0x1c]
mov byte [esp + 0x264], 1
call fcn.0040d470
lea ecx, [esp + 0x30]
mov byte [esp + 0x260], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [esp + 0x4c]
push eax
inc esi
call edi
test eax, eax
jne 0x40d224
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov edi, ecx
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
lea edi, [edx + eax - 1]
test edi, edi
jl 0x40d348
mov ebp, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea ebx, [edi*8]
sub ebx, edi
add ebx, ebx
add ebx, ebx
jmp 0x40d2b0
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x40d2cf
call ebp
mov esi, dword [esp + 0x24]
cmp dword [ebx + esi + 0x18], 8
jb 0x40d2dc
mov esi, dword [ebx + esi + 4]
jmp 0x40d2e0
lea esi, [ebx + esi + 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40d334
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40d312
call ebp
mov esi, dword [esp + 0x24]
cmp dword [ebx + esi + 0x18], 8
jb 0x40d31f
mov esi, dword [ebx + esi + 4]
jmp 0x40d323
lea esi, [ebx + esi + 4]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40d3bf
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
dec edi
sub ebx, 0x1c
test edi, edi
jge 0x40d2b0
xor ebx, ebx
mov dword [esp + 0x260], 3
cmp esi, ebx
je 0x40d37c
mov edi, ecx
cmp esi, ecx
je 0x40d373
nop
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x40d360
mov esi, dword [esp + 0x24]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00419fc4
add esp, 0x250
ret
mov dword [esp + 0x260], 2
mov esi, dword [esp + 0x24]
xor ebx, ebx
cmp esi, ebx
je 0x40d3fc
mov edi, dword [esp + 0x28]
cmp esi, edi
je 0x40d3f3
lea esp, [esp]
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x40d3e0
mov esi, dword [esp + 0x24]
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x40d397