Function at 0x51af4b0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x523405b
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x7c]
push eax
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
xor ebx, ebx
mov dword [esp + 0x74], ebx
push 2
push 0x52af028
push 2
push 1
lea ecx, [esp + 0x5c]
xor esi, esi
call dword [sym.imp.MSVCP90.dll_public:_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::compare_unsigned_int__unsigned_int__char_const___unsigned_int_const]
test eax, eax
jne 0x51af517
mov esi, 3
push 2
push esi
push 0x52af024
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_first_not_of_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [ecx], eax
je 0x51af5f2
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, 0x10
push 1
push eax
push 0x529230c
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov esi, eax
push esi
push ebx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov byte [esp + 0x74], 1
cmp dword [eax + 0x18], edi
jb 0x51af576
mov eax, dword [eax + 4]
jmp 0x51af579
add eax, 4
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x74], 3
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], edi
jae 0x51af5a1
lea eax, [esp + 0x34]
push eax
call fcn.051af490
add esp, 4
test al, al
jne 0x51af5c4
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], edi
jae 0x51af5bc
lea eax, [esp + 0x34]
push ebx
push eax
call ebp
test eax, eax
je 0x51af625
mov byte [esp + 0x74], bl
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 2
push esi
push 0x52af024
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_first_not_of_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [ecx], eax
jne 0x51af542
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0520b902
add esp, 0x64
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [esp + 0x74], bl
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
jmp 0x51af606