Function at 0x5587d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b25a3
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x7ca00c]
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 0x558826
cmp word [ebx], ax
jne 0x558844
cmp dword [edi + 0x4c], 8
lea ebx, [edi + 0x38]
mov byte [ebp - 0x2d9], 1
mov dword [ebp - 0x2e0], ebx
jb 0x558844
mov ebx, dword [ebx]
mov dword [ebp - 0x2e0], ebx
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.00508490
cmp dword [esi + 0x10], 0
je 0x558883
cmp dword [0x7d36e0], 8
mov eax, 0x7d36cc
push dword [0x7d36dc]
cmovae eax, dword [0x7d36cc]
mov ecx, esi
push eax
call fcn.00428920
push 1
push 0x702ca8
mov ecx, eax
call fcn.00428920
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x55888d
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 0x5588b0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2fc]
call fcn.00428800
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.00428770
test bl, bl
je 0x5589b5
cmp dword [esi + 0x14], 8
jb 0x558907
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 0x558930
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2fc]
call fcn.00428800
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 0x55897d
cmp eax, 0xb7
je 0x55897d
cmp eax, 0x50
jne 0x55897f
mov bl, 1
lea ecx, [ebp - 0x2fc]
call fcn.00428770
test bl, bl
jne 0x558995
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.0063de71
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp - 0x2d9], 0
mov ebx, dword [ebp - 0x2e0]
jne 0x558a33
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 0x5589e6
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x2fc]
call fcn.00428800
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 0x558a3a
mov byte [ebp - 0x2d9], 0
mov eax, dword [ebp - 0x2e4]
test al, 1
je 0x558a58
and eax, 0xfffffffe
lea ecx, [ebp - 0x2fc]
mov dword [ebp - 0x2e4], eax
call fcn.00428770
cmp byte [ebp - 0x2d9], 0
jne 0x55898e
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 0x558a87
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x318]
call fcn.00428800
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x558ab4
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00656e94
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 0x558b1e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x558b00
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00428800
lea ecx, [ebp - 0x318]
mov dword [ebp - 4], 0xffffffff
call fcn.00428770
test ebx, ebx
je 0x55898e
cmp dword [edi + 0xdc], 0
je 0x558b71
lea ebx, [edi + 0x78]
lea ecx, [ebx + 0x18]
call fcn.004e5f70
test eax, eax
jne 0x558b71
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.00433500
push 0xc0
lea eax, [ebp - 0x2d8]
push 0
push eax
call fcn.006501e0
mov dword [ebp - 0x2d8], 0x7245f4
mov dword [ebp - 0x2c8], 0x718b44
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.004741a0
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.00504540
mov dword [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x558c16
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 0x558c22
sub edx, esi
lea ecx, [edi + 0x38]
sar edx, 1
push edx
push eax
call fcn.00428800
cmp byte [edi + 0x139], 0
mov ecx, edi
mov eax, dword [edi]
mov edx, dword [eax]
je 0x558c58
lea eax, [edi + 0x78]
push eax
call edx
mov byte [edi + 0x138], al
jmp 0x558cb8
lea eax, [ebp - 0x2d8]
push eax
call edx
mov byte [edi + 0x138], al
test al, al
je 0x558cb8
mov eax, dword [ebp - 0x2d8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x2cc], 6
jne 0x558cb8
lea ecx, [ebp - 0x2c0]
call fcn.004e5f70
test eax, eax
jne 0x558cb8
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.00433500
mov bl, byte [edi + 0x138]
lea ecx, [ebp - 0x2d8]
call fcn.00502ac0
mov al, bl
jmp 0x558997