Function at 0x45d880
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x470943
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
xor esi, esi
lea ecx, [esp + 0x64]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov dword [edi + 4], 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__::constructor_void_]
lea ecx, [esp + 0x48]
mov dword [esp + 0x90], 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__::constructor_void_]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
push ebx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x94], 2
call dword [0x474790]
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov ecx, dword [eax]
push ecx
push 0x478908
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_last_of_wchar_t_const___unsigned_int_const]
mov esi, eax
cmp esi, 0xffffffff
je 0x45d976
push esi
push 0
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x94], 3
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x90], 2
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_]
push esi
lea ecx, [esp + 0x4c]
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__::resize_unsigned_int_]
lea eax, [esp + 0x64]
push eax
lea esi, [esp + 0x18]
call fcn.0045cd90
jmp 0x45d906
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45da4c
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x45da4c
lea ebx, [esp + 0x14]
call fcn.0045fa90
mov esi, dword [esp + 0x18]
test esi, esi
mov ecx, dword [esp + 0x1c]
jne 0x45d9bd
xor eax, eax
jmp 0x45d9d4
mov ebx, ecx
sub ebx, esi
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ebx, [eax - 1]
cmp ebx, 0xffffffff
je 0x45da48
lea edi, [ebx*8]
sub edi, ebx
add edi, edi
add edi, edi
jmp 0x45d9f8
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x45da15
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x45da1f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x18]
cmp dword [edi + esi + 0x18], 8
jb 0x45da2c
mov esi, dword [edi + esi + 4]
jmp 0x45da30
lea esi, [edi + esi + 4]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub ebx, 1
sub edi, 0x1c
cmp ebx, 0xffffffff
jne 0x45d9f0
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
cmp byte [ebp + 0xc], 0
push 0
push 0x80
je 0x45da6c
cmp byte [ebp + 0x10], 0
push 3
push 0
je 0x45da7f
push 7
push 0x80000000
jmp 0x45da86
cmp byte [ebp + 0x10], 0
push 4
push 0
je 0x45da7f
push 1
push 0x80000000
jmp 0x45da86
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
cmp eax, 0xffffffff
mov byte [esp + 0x90], 1
mov esi, dword [esp + 0x18]
mov dword [edi + 4], eax
jne 0x45db03
cmp esi, ebx
je 0x45dacc
mov edi, dword [esp + 0x1c]
cmp esi, edi
je 0x45dac3
nop
mov ecx, 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_]
add esi, 0x1c
cmp esi, edi
jne 0x45dab0
mov esi, dword [esp + 0x18]
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x90], 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 + 0x64]
mov dword [esp + 0x90], 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 0x45db61
cmp esi, ebx
je 0x45db2c
mov edi, dword [esp + 0x1c]
cmp esi, edi
je 0x45db23
nop
mov ecx, 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_]
add esi, 0x1c
cmp esi, edi
jne 0x45db10
mov esi, dword [esp + 0x18]
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x90], 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 + 0x64]
mov dword [esp + 0x90], 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 + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0046d6fd
mov esp, ebp
pop ebp
ret 0xc