Function at 0x58c760
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5abd35
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x850
push ebx
push esi
push edi
mov esi, ecx
push ecx
lea eax, [esp + 0x874]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x86c], 1
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x874]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x870], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x86c], 1
call fcn.0058dd10
push ecx
lea eax, [esp + 0x870]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058d910
test eax, eax
jne 0x58c87a
push str._not_found
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x86c]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov byte [esp + 0x870], 3
call sub.MFC42.DLL_operator_1
mov bl, 5
lea ecx, [esp + 0x1c]
mov byte [esp + 0x864], bl
call fcn.0058df86
push 8
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
test esi, esi
mov byte [esp + 0x864], 6
je 0x58c85e
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058b9b0
jmp 0x58c860
xor eax, eax
lea ecx, [esp + 0x20]
push 0x5dc018
push ecx
mov byte [esp + 0x86c], bl
mov dword [esp + 0x28], eax
call sub.MSVCRT.dll__CxxThrowException
push ecx
lea edx, [esp + 0x874]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov byte [esp + 0x1f], 0
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058d910
test eax, eax
jne 0x58c9de
mov eax, dword [esp + 0x870]
lea ecx, [esp + 0x454]
push eax
call fcn.0058b880
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x458]
call fcn.0047dde0
mov edi, eax
lea edx, [esp + 0x20]
lea ecx, [esp + 0x454]
push edx
mov byte [esp + 0x868], 7
call fcn.0058def0
push edi
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x86c], 8
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x864], 0xb
call fcn.0058df86
lea ecx, [esp + 0x24]
mov byte [esp + 0x864], 0xa
call fcn.0058df86
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058d910
test eax, eax
jne 0x58c9c5
push str._not_found_Dest
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
push eax
lea eax, [esp + 0x874]
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x870], 0xc
call sub.MFC42.DLL_operator_1
mov bl, 0xe
lea ecx, [esp + 0x18]
mov byte [esp + 0x864], bl
call fcn.0058df86
push 8
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x864], 0xf
je 0x58c9a9
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058b9b0
jmp 0x58c9ab
xor eax, eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 0x5dc018
push eax
mov byte [esp + 0x86c], bl
call sub.MSVCRT.dll__CxxThrowException
cmp eax, 2
lea ecx, [esp + 0x1c]
sete byte [esp + 0x17]
mov byte [esp + 0x864], 1
call fcn.0058df86
push ecx
lea edx, [esp + 0x870]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058d910
cmp eax, 2
jne 0x58ca71
push ecx
lea eax, [esp + 0x874]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058d910
cmp eax, 1
jne 0x58ca71
push 8
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
mov byte [esp + 0x864], 0x10
je 0x58ca54
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Wrong_operation
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.0058b9b0
jmp 0x58ca56
xor eax, eax
lea ecx, [esp + 0x10]
push 0x5dc018
push ecx
mov byte [esp + 0x86c], 1
mov dword [esp + 0x18], eax
call sub.MSVCRT.dll__CxxThrowException
push ecx
lea edx, [esp + 0x870]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058d910
cmp eax, 2
jne 0x58cd53
push ecx
lea eax, [esp + 0x874]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058d910
cmp eax, 2
jne 0x58cd53
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::CFileFind
mov bl, 0x11
push str._not_found
lea ecx, [esp + 0x14]
mov byte [esp + 0x868], bl
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x86c]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x870], 0x12
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x864], 0x14
call fcn.0058df86
lea eax, [esp + 0x86c]
mov ecx, esi
push eax
call fcn.0058d9e0
lea ecx, [esp + 0x870]
push ecx
mov ecx, esi
call fcn.0058d9e0
push 0x5fdfe4
lea ecx, [esp + 0x870]
call fcn.0058e586
mov edx, dword [esp + 0x86c]
push 0
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
lea ecx, [esp + 0x28]
jne 0x58cba7
call sub.MFC42.DLL_CFileFind::Close
push 8
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
mov byte [esp + 0x864], 0x15
je 0x58cb8a
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058b9b0
jmp 0x58cb8c
xor eax, eax
lea ecx, [esp + 0x18]
push 0x5dc018
push ecx
mov byte [esp + 0x86c], 0x14
mov dword [esp + 0x20], eax
call sub.MSVCRT.dll__CxxThrowException
call sub.MFC42.DLL_CFileFind::FindNextFileA
test eax, eax
jne 0x58cc0c
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::Close
push 8
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
mov byte [esp + 0x864], 0x16
je 0x58cbef
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058b9b0
jmp 0x58cbf1
xor eax, eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push 0x5dc018
push eax
mov byte [esp + 0x86c], 0x14
call sub.MSVCRT.dll__CxxThrowException
push ecx
lea edx, [esp + 0x870]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.0058dc10
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x864], 0x17
mov eax, dword [ecx - 8]
test eax, eax
je 0x58ccd1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x870]
push edx
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x870]
mov ecx, esi
push eax
call fcn.0058d9e0
mov ecx, dword [esp + 0x870]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x58ccd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
je 0x58ccd1
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::Close
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x864], 0x18
je 0x58ccb4
push edi
mov ecx, eax
call fcn.0058b930
jmp 0x58ccb6
xor eax, eax
lea edx, [esp + 0x10]
push 0x5dc018
push edx
mov byte [esp + 0x86c], 0x17
mov dword [esp + 0x18], eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [esp + 0x874]
lea edx, [esp + 0x870]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x878]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov byte [esp + 0x874], 0x19
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x870], 0x17
call fcn.0058c130
lea ecx, [esp + 0x24]
mov byte [esp + 0x864], 0x14
call fcn.0058df86
lea ecx, [esp + 0x1c]
mov byte [esp + 0x864], bl
call fcn.0058df86
lea ecx, [esp + 0x28]
mov byte [esp + 0x864], 1
call fcn.0058e9fa
push ecx
lea edx, [esp + 0x870]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058d910
cmp eax, 1
jne 0x58cddc
push ecx
lea eax, [esp + 0x874]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058d910
cmp eax, 1
je 0x58cd9b
mov al, byte [esp + 0x17]
test al, al
je 0x58cddc
push 0
push ecx
lea edx, [esp + 0x878]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x878]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x874], 0x1a
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x870], 1
call fcn.0058cfa0
push ecx
lea edx, [esp + 0x870]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058d910
cmp eax, 1
jne 0x58cf53
push ecx
lea eax, [esp + 0x874]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0058d910
cmp eax, 2
jne 0x58cf53
lea ecx, [esp + 0x870]
push ecx
mov ecx, esi
call fcn.0058d9e0
lea edx, [esp + 0x44]
lea eax, [esp + 0x148]
push edx
lea ecx, [esp + 0x250]
push eax
mov eax, dword [esp + 0x874]
lea edx, [esp + 0x358]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
mov edi, eax
lea edx, [esp + 0x148]
lea ecx, [esp + 0x20]
push edx
mov byte [esp + 0x868], 0x1b
call sub.MFC42.DLL_CString::CString_1
push eax
lea eax, [esp + 0x874]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x870], 0x1c
call sub.MFC42.DLL_operator_1
push edi
lea edx, [esp + 0x14]
mov bl, 0x1d
push eax
push edx
mov byte [esp + 0x870], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x874]
mov byte [esp + 0x868], 0x1e
call fcn.0058dfec
lea ecx, [esp + 0x10]
mov byte [esp + 0x864], bl
call fcn.0058df86
lea ecx, [esp + 0x18]
mov byte [esp + 0x864], 0x1c
call fcn.0058df86
lea ecx, [esp + 0x20]
mov byte [esp + 0x864], 0x1b
call fcn.0058df86
lea ecx, [esp + 0x1c]
mov byte [esp + 0x864], 1
call fcn.0058df86
push 0
push ecx
lea eax, [esp + 0x878]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x878]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x874], 0x1f
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x870], 1
call fcn.0058cfa0
lea ecx, [esp + 0x86c]
mov byte [esp + 0x864], 0
call fcn.0058df86
lea ecx, [esp + 0x870]
mov dword [esp + 0x864], 0xffffffff
call fcn.0058df86
mov ecx, dword [esp + 0x85c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x85c
ret 0xc