Function at 0x58ad80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f7003
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x2e0], ebx
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x300], eax
mov byte [ebp - 0x2d9], al
test ebx, ebx
je 0x58add6
cmp word [ebx], ax
jne 0x58adf4
cmp dword [edi + 0x4c], 8
lea ebx, [edi + 0x38]
mov byte [ebp - 0x2d9], 1
mov dword [ebp - 0x2e0], ebx
jb 0x58adf4
mov ebx, dword [ebx]
mov dword [ebp - 0x2e0], ebx
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.005226a0
cmp dword [esi + 0x10], 0
je 0x58ae33
cmp dword [0x83ab10], 8
mov eax, 0x83aafc
push dword [0x83ab0c]
cmovae eax, dword [0x83aafc]
mov ecx, esi
push eax
call fcn.0042ff20
push 1
push 0x7625f8
mov ecx, eax
call fcn.0042ff20
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x58ae3d
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x2ec], 0
xor eax, eax
mov dword [ebp - 0x2e8], 7
mov word [ebp - 0x2fc], ax
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x58ae60
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2fc]
call fcn.0042fe00
cmp dword [ebp - 0x2e8], 8
lea eax, [ebp - 0x2fc]
cmovae eax, dword [ebp - 0x2fc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
lea ecx, [ebp - 0x2fc]
sete bl
call fcn.0042fd70
test bl, bl
je 0x58af65
cmp dword [esi + 0x14], 8
jb 0x58aeb7
mov esi, dword [esi]
mov ecx, esi
mov dword [ebp - 0x2ec], 0
xor eax, eax
mov dword [ebp - 0x2e8], 7
mov word [ebp - 0x2fc], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x58aee0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2fc]
call fcn.0042fe00
xor bl, bl
lea eax, [ebp - 0x2fc]
cmp dword [ebp - 0x2e8], 8
push 0
cmovae eax, dword [ebp - 0x2fc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x58af2d
cmp eax, 0xb7
je 0x58af2d
cmp eax, 0x50
jne 0x58af2f
mov bl, 1
lea ecx, [ebp - 0x2fc]
call fcn.0042fd70
test bl, bl
jne 0x58af45
mov byte [edi + 0x138], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0067d651
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp - 0x2d9], 0
mov ebx, dword [ebp - 0x2e0]
jne 0x58afe3
mov ecx, ebx
mov dword [ebp - 0x2ec], 0
xor eax, eax
mov dword [ebp - 0x2e8], 7
mov word [ebp - 0x2fc], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x58af96
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x2fc]
call fcn.0042fe00
cmp dword [ebp - 0x2e8], 8
mov eax, 1
mov dword [ebp - 0x2e4], eax
lea eax, [ebp - 0x2fc]
cmovae eax, dword [ebp - 0x2fc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
mov byte [ebp - 0x2d9], 1
test eax, eax
je 0x58afea
mov byte [ebp - 0x2d9], 0
mov eax, dword [ebp - 0x2e4]
test al, 1
je 0x58b008
and eax, 0xfffffffe
lea ecx, [ebp - 0x2fc]
mov dword [ebp - 0x2e4], eax
call fcn.0042fd70
cmp byte [ebp - 0x2d9], 0
jne 0x58af3e
mov ecx, ebx
mov dword [ebp - 0x308], 0
xor eax, eax
mov dword [ebp - 0x304], 7
mov word [ebp - 0x318], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x58b037
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x318]
call fcn.0042fe00
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x58b064
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00696fb5
add esp, 0xc
lea eax, [ebp - 0x318]
cmp dword [ebp - 0x304], 8
cmovae eax, dword [ebp - 0x318]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebx, eax
test ebx, ebx
je 0x58b0ce
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x58b0b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0042fe00
lea ecx, [ebp - 0x318]
mov dword [ebp - 4], 0xffffffff
call fcn.0042fd70
test ebx, ebx
je 0x58af3e
cmp dword [edi + 0xdc], 0
je 0x58b121
lea ebx, [edi + 0x78]
lea ecx, [ebx + 0x18]
call fcn.004fd2a0
test eax, eax
jne 0x58b121
mov eax, dword [ebx]
push 0
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, ebx
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0043acc0
push 0xc0
lea eax, [ebp - 0x2d8]
push 0
push eax
call fcn.00690450
mov dword [ebp - 0x2d8], 0x78246c
mov dword [ebp - 0x2c8], 0x775888
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2d8]
mov eax, dword [ebp - 0x2e4]
add esp, 8
or eax, 2
mov dword [ebp - 0x300], eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.00482d00
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x2d8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_fstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x2d8]
mov ecx, dword [eax + 4]
push ecx
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x2dc], eax
lea ecx, [ebp - 0x2c0]
call fcn.0051bc20
mov dword [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x58b1c6
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x58b1d2
sub edx, esi
lea ecx, [edi + 0x38]
sar edx, 1
push edx
push eax
call fcn.0042fe00
cmp byte [edi + 0x139], 0
mov ecx, edi
mov eax, dword [edi]
mov edx, dword [eax]
je 0x58b208
lea eax, [edi + 0x78]
push eax
call edx
mov byte [edi + 0x138], al
jmp 0x58b268
lea eax, [ebp - 0x2d8]
push eax
call edx
mov byte [edi + 0x138], al
test al, al
je 0x58b268
mov eax, dword [ebp - 0x2d8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x2cc], 6
jne 0x58b268
lea ecx, [ebp - 0x2c0]
call fcn.004fd2a0
test eax, eax
jne 0x58b268
mov eax, dword [ebp - 0x2d8]
lea ecx, [ebp - 0x2d8]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0043acc0
mov bl, byte [edi + 0x138]
lea ecx, [ebp - 0x2d8]
call fcn.0051a160
mov al, bl
jmp 0x58af47