Function at 0x58c130
Capabilities:
Create directory
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5abb73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x70], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea eax, [esp + 0x78]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x74], 2
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x78], 3
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x58c3ff
mov bl, 7
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x58c3f3
mov edx, dword [esp + 0x4c]
push 0x10
lea ecx, [esp + 0x50]
call dword [edx + 0x40]
test eax, eax
je 0x58c373
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x58c3f3
push 0x5fdfe4
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
mov esi, eax
push 0x5fdfe8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], 4
call sub.MFC42.DLL_CString::CString_1
mov edi, eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x4c]
push eax
mov byte [esp + 0x74], 5
call sub.MFC42.DLL_CFileFind::GetFilePath
push edi
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x7c], 6
call sub.MFC42.DLL_operator_1
push esi
lea edx, [esp + 0x20]
push eax
push edx
mov byte [esp + 0x7c], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 8
call fcn.0058dfec
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], bl
call fcn.0058df86
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 6
call fcn.0058df86
lea ecx, [esp + 0x24]
mov byte [esp + 0x70], 5
call fcn.0058df86
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 4
call fcn.0058df86
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 3
call fcn.0058df86
push 0x5fdfe8
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_1
mov esi, eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x4c]
push eax
mov byte [esp + 0x74], 9
call sub.MFC42.DLL_CFileFind::GetFileName
lea ecx, [esp + 0x7c]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
mov byte [esp + 0x7c], 0xa
call sub.MFC42.DLL_operator_1
push esi
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x78], 0xb
push eax
call sub.MFC42.DLL_operator_1
mov byte [esp + 0x70], 0xf
lea ecx, [esp + 0x30]
call fcn.0058df86
lea ecx, [esp + 0x34]
mov byte [esp + 0x70], 0xe
call fcn.0058df86
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 0xd
call fcn.0058df86
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebp
call fcn.0058d910
test eax, eax
jne 0x58c31f
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x58c458
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x58c32a
dec eax
mov dword [ebp + 0xc], eax
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
mov byte [esp + 0x80], 0x11
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebp
mov byte [esp + 0x7c], 0xd
call fcn.0058c130
mov byte [esp + 0x70], 3
lea ecx, [esp + 0x10]
jmp 0x58c3ee
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea edx, [esp + 0x80]
lea eax, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x7c], 0x12
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 0x14
call fcn.0058df86
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea ecx, [esp + 0x58]
mov eax, esp
mov dword [esp + 0x50], esp
push eax
mov byte [esp + 0x80], 0x15
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, ebp
mov byte [esp + 0x7c], 0x14
call fcn.0058cfa0
mov byte [esp + 0x70], 3
lea ecx, [esp + 0x18]
call fcn.0058df86
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x58c191
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 2
call fcn.0058df86
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 1
call fcn.0058e9fa
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 0
call fcn.0058df86
lea ecx, [esp + 0x7c]
mov dword [esp + 0x70], 0xffffffff
call fcn.0058df86
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret 0xc
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CFileFind::Close
push 8
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x48], esi
test esi, esi
mov byte [esp + 0x70], 0x10
je 0x58c48a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0058b930
jmp 0x58c48c
xor eax, eax
lea ecx, [esp + 0x80]
push 0x5dc018
push ecx
mov byte [esp + 0x78], 0xd
mov dword [esp + 0x88], eax
call sub.MSVCRT.dll__CxxThrowException
nop
nop
nop
nop
nop
nop