Function at 0x4ba670
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72b543
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x857060]
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 0x4ba6c6
cmp word [ebx], ax
jne 0x4ba6e4
cmp dword [edi + 0x4c], 8
lea ebx, [edi + 0x38]
mov byte [ebp - 0x2d9], 1
mov dword [ebp - 0x2e0], ebx
jb 0x4ba6e4
mov ebx, dword [ebx]
mov dword [ebp - 0x2e0], ebx
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.00548310
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x4ba6f8
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 word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ba720
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2fc]
call fcn.00426d40
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.00426ce0
test bl, bl
je 0x4ba825
cmp dword [esi + 0x14], 8
jb 0x4ba777
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 0x4ba7a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2fc]
call fcn.00426d40
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 0x4ba7ed
cmp eax, 0xb7
je 0x4ba7ed
cmp eax, 0x50
jne 0x4ba7ef
mov bl, 1
lea ecx, [ebp - 0x2fc]
call fcn.00426ce0
test bl, bl
jne 0x4ba805
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.006d0965
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp - 0x2d9], 0
mov ebx, dword [ebp - 0x2e0]
jne 0x4ba8a3
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 0x4ba856
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x2fc]
call fcn.00426d40
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 0x4ba8aa
mov byte [ebp - 0x2d9], 0
mov eax, dword [ebp - 0x2e4]
test al, 1
je 0x4ba8c8
and eax, 0xfffffffe
lea ecx, [ebp - 0x2fc]
mov dword [ebp - 0x2e4], eax
call fcn.00426ce0
cmp byte [ebp - 0x2d9], 0
jne 0x4ba7fe
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 0x4ba8f7
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x318]
call fcn.00426d40
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4ba924
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00703ff1
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 0x4ba98e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ba970
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00426d40
lea ecx, [ebp - 0x318]
mov dword [ebp - 4], 0xffffffff
call fcn.00426ce0
test ebx, ebx
je 0x4ba7fe
cmp dword [edi + 0xdc], 0
je 0x4ba9e1
lea ebx, [edi + 0x78]
lea ecx, [ebx + 0x18]
call fcn.004b53e0
test eax, eax
jne 0x4ba9e1
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.00429ca0
push 0xc0
lea eax, [ebp - 0x2d8]
push 0
push eax
call fcn.006e9470
mov dword [ebp - 0x2d8], 0x79edcc
mov dword [ebp - 0x2c8], 0x79eaf0
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.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.004b55f0
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.004bb610
mov dword [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x4baa86
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 0x4baa92
sub edx, esi
lea ecx, [edi + 0x38]
sar edx, 1
push edx
push eax
call fcn.00426d40
cmp byte [edi + 0x139], 0
mov ecx, edi
mov eax, dword [edi]
mov edx, dword [eax]
je 0x4baac8
lea eax, [edi + 0x78]
push eax
call edx
mov byte [edi + 0x138], al
jmp 0x4bab28
lea eax, [ebp - 0x2d8]
push eax
call edx
mov byte [edi + 0x138], al
test al, al
je 0x4bab28
mov eax, dword [ebp - 0x2d8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x2cc], 6
jne 0x4bab28
lea ecx, [ebp - 0x2c0]
call fcn.004b53e0
test eax, eax
jne 0x4bab28
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.00429ca0
mov bl, byte [edi + 0x138]
lea ecx, [ebp - 0x2d8]
call fcn.004b9990
mov al, bl
jmp 0x4ba807