Function at 0x54d080
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ca0a3
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x7e500c]
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 0x54d0d6
cmp word [ebx], ax
jne 0x54d0f4
cmp dword [edi + 0x4c], 8
lea ebx, [edi + 0x38]
mov byte [ebp - 0x2d9], 1
mov dword [ebp - 0x2e0], ebx
jb 0x54d0f4
mov ebx, dword [ebx]
mov dword [ebp - 0x2e0], ebx
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.004ffe40
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x54d108
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 0x54d130
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2fc]
call fcn.004271d0
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.00427170
test bl, bl
je 0x54d235
cmp dword [esi + 0x14], 8
jb 0x54d187
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 0x54d1b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2fc]
call fcn.004271d0
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 0x54d1fd
cmp eax, 0xb7
je 0x54d1fd
cmp eax, 0x50
jne 0x54d1ff
mov bl, 1
lea ecx, [ebp - 0x2fc]
call fcn.00427170
test bl, bl
jne 0x54d215
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.00650ddc
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp - 0x2d9], 0
mov ebx, dword [ebp - 0x2e0]
jne 0x54d2b3
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 0x54d266
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x2fc]
call fcn.004271d0
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 0x54d2ba
mov byte [ebp - 0x2d9], 0
mov eax, dword [ebp - 0x2e4]
test al, 1
je 0x54d2d8
and eax, 0xfffffffe
lea ecx, [ebp - 0x2fc]
mov dword [ebp - 0x2e4], eax
call fcn.00427170
cmp byte [ebp - 0x2d9], 0
jne 0x54d20e
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 0x54d307
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x318]
call fcn.004271d0
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x54d334
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0066f874
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 0x54d39e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x54d380
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004271d0
lea ecx, [ebp - 0x318]
mov dword [ebp - 4], 0xffffffff
call fcn.00427170
test ebx, ebx
je 0x54d20e
cmp dword [edi + 0xdc], 0
je 0x54d3f1
lea ebx, [edi + 0x78]
lea ecx, [ebx + 0x18]
call fcn.004de0c0
test eax, eax
jne 0x54d3f1
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.00431fb0
push 0xc0
lea eax, [ebp - 0x2d8]
push 0
push eax
call fcn.00663090
mov dword [ebp - 0x2d8], 0x73b7ac
mov dword [ebp - 0x2c8], 0x730610
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.004708e0
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.004fbef0
mov dword [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x54d496
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 0x54d4a2
sub edx, esi
lea ecx, [edi + 0x38]
sar edx, 1
push edx
push eax
call fcn.004271d0
cmp byte [edi + 0x139], 0
mov ecx, edi
mov eax, dword [edi]
mov edx, dword [eax]
je 0x54d4d8
lea eax, [edi + 0x78]
push eax
call edx
mov byte [edi + 0x138], al
jmp 0x54d538
lea eax, [ebp - 0x2d8]
push eax
call edx
mov byte [edi + 0x138], al
test al, al
je 0x54d538
mov eax, dword [ebp - 0x2d8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x2cc], 6
jne 0x54d538
lea ecx, [ebp - 0x2c0]
call fcn.004de0c0
test eax, eax
jne 0x54d538
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.00431fb0
mov bl, byte [edi + 0x138]
lea ecx, [ebp - 0x2d8]
call fcn.004fa470
mov al, bl
jmp 0x54d217