Function at 0x589540
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f5193
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x82d084]
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 0x589596
cmp word [ebx], ax
jne 0x5895b4
cmp dword [edi + 0x4c], 8
lea ebx, [edi + 0x38]
mov byte [ebp - 0x2d9], 1
mov dword [ebp - 0x2e0], ebx
jb 0x5895b4
mov ebx, dword [ebx]
mov dword [ebp - 0x2e0], ebx
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.00520e70
cmp dword [esi + 0x10], 0
je 0x5895f3
cmp dword [0x838b10], 8
mov eax, 0x838afc
push dword [0x838b0c]
cmovae eax, dword [0x838afc]
mov ecx, esi
push eax
call fcn.0042ff20
push 1
push 0x761550
mov ecx, eax
call fcn.0042ff20
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x5895fd
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 0x589620
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 0x589725
cmp dword [esi + 0x14], 8
jb 0x589677
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 0x5896a0
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 0x5896ed
cmp eax, 0xb7
je 0x5896ed
cmp eax, 0x50
jne 0x5896ef
mov bl, 1
lea ecx, [ebp - 0x2fc]
call fcn.0042fd70
test bl, bl
jne 0x589705
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.0067ba01
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp - 0x2d9], 0
mov ebx, dword [ebp - 0x2e0]
jne 0x5897a3
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 0x589756
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 0x5897aa
mov byte [ebp - 0x2d9], 0
mov eax, dword [ebp - 0x2e4]
test al, 1
je 0x5897c8
and eax, 0xfffffffe
lea ecx, [ebp - 0x2fc]
mov dword [ebp - 0x2e4], eax
call fcn.0042fd70
cmp byte [ebp - 0x2d9], 0
jne 0x5896fe
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 0x5897f7
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 0x589824
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00695365
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 0x58988e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x589870
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 0x5896fe
cmp dword [edi + 0xdc], 0
je 0x5898e1
lea ebx, [edi + 0x78]
lea ecx, [ebx + 0x18]
call fcn.004fba60
test eax, eax
jne 0x5898e1
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.0043ab30
push 0xc0
lea eax, [ebp - 0x2d8]
push 0
push eax
call fcn.0068e800
mov dword [ebp - 0x2d8], 0x780894
mov dword [ebp - 0x2c8], 0x774638
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.004825b0
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.0051a3f0
mov dword [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x589986
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 0x589992
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 0x5899c8
lea eax, [edi + 0x78]
push eax
call edx
mov byte [edi + 0x138], al
jmp 0x589a28
lea eax, [ebp - 0x2d8]
push eax
call edx
mov byte [edi + 0x138], al
test al, al
je 0x589a28
mov eax, dword [ebp - 0x2d8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x2cc], 6
jne 0x589a28
lea ecx, [ebp - 0x2c0]
call fcn.004fba60
test eax, eax
jne 0x589a28
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.0043ab30
mov bl, byte [edi + 0x138]
lea ecx, [ebp - 0x2d8]
call fcn.00518920
mov al, bl
jmp 0x589707