Function at 0x5579d0
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569291
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5df7e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x7c], esi
mov dword [eax], 0
mov ecx, dword [esi + 0x70]
mov dword [ebp - 0x94], eax
test ecx, ecx
je 0x557a30
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x70], 0
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x38]
mov eax, dword [esi + 0xc]
push edx
push 3
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
jne 0x557bc8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
mov ax, word [ebp - 0x38]
test ax, ax
jne 0x557b6b
mov eax, dword [esi + 0xc]
lea edx, [ebp - 0x38]
push edx
push 5
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
lea ecx, [ebp - 0x28]
push 9
push 0x5be4fc
test eax, eax
jne 0x557bfa
cmp word [ebp - 0x38], ax
je 0x557bfa
call fcn.004bb7b0
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 1
jb 0x557ae6
cmp edx, 8
lea esi, [ebp - 0x28]
push 2
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 1]
push 0x5be3ac
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00529d00
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x557afe
push 1
push 0x5be3ac
mov byte [ebp - 0x74], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x74]
push 1
call fcn.004bcae0
mov edx, dword [ebp - 0x30]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x557b06
mov eax, dword [ebp - 0x14]
sub ecx, esi
mov esi, dword [ebp - 0x18]
sub eax, esi
sar ecx, 1
mov dword [ebp - 0x74], esi
cmp ecx, eax
ja 0x557b54
cmp dword [ebp - 0x14], 8
lea edi, [esi + ecx]
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], edi
push eax
mov eax, dword [ebp - 0x74]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.00529d00
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x557bff
push ecx
push edx
mov byte [ebp - 0x74], 0
push dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004bcae0
jmp 0x557bff
cmp ax, 8
je 0x557bde
mov edi, 0x80004005
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x557bb4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x557baa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5581a7
push edx
push ecx
call fcn.00511c7f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.005577c0
mov eax, edi
jmp 0x55818a
mov edx, dword [ebp - 0x30]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x557be6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004bb7b0
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x28]
lea ecx, [esi + 0x28]
cmp ecx, eax
je 0x557c1d
cmp dword [ebp - 0x14], 8
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004bb7b0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x557c5b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x557c51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5581ac
push edx
push ecx
call fcn.00511c7f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.005577c0
xor eax, eax
cmp dword [ebp + 0x14], eax
jne 0x55818a
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 2
lea edx, [ebp - 0x38]
mov eax, dword [esi + 0xc]
push edx
push 9
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
jne 0x557bc8
mov ax, word [ebp - 0x38]
test ax, ax
jne 0x557cc0
mov dword [esi + 0x64], edi
mov byte [esi + 0x69], al
jmp 0x557cda
cmp ax, 0x13
je 0x557cd0
mov edi, 0x80004005
jmp 0x557bc8
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x64], eax
mov byte [esi + 0x69], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.005577c0
mov edi, dword [ebp + 0xc]
lea eax, [esi + 0x68]
mov ecx, dword [esi + 0xc]
mov edx, edi
push eax
call fcn.00556a30
add esp, 4
test eax, eax
jne 0x55818a
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 3
lea edx, [ebp - 0x38]
mov eax, dword [esi + 0xc]
push edx
push 0xc
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
jne 0x557bc8
mov byte [esi + 0x6a], al
movzx eax, word [ebp - 0x38]
test eax, eax
je 0x557d49
cmp eax, 0x40
jne 0x557cc6
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x60], eax
mov byte [esi + 0x6a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.005577c0
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 4
lea edx, [ebp - 0x50]
mov eax, dword [esi + 0xc]
push edx
push 7
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
je 0x557d92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.005577c0
mov eax, edi
jmp 0x55818a
cmp word [ebp - 0x50], 0
je 0x557da1
lea ecx, [ebp - 0x50]
call fcn.005569c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.005577c0
sub esp, 8
lea edi, [esi + 0x28]
mov ecx, edi
call fcn.004bd100
test eax, eax
js 0x557fe0
push eax
push 0
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.004bb1d0
mov edi, eax
mov dword [ebp - 4], 6
lea edx, [esi + 0x10]
cmp dword [edx + 0x14], 8
mov ecx, edx
mov dword [ebp - 0x88], edx
jb 0x557df5
mov ecx, dword [edx]
mov dword [ebp - 0x88], ecx
mov eax, dword [edi + 0x10]
mov edx, dword [edx + 0x10]
mov dword [ebp - 0x78], eax
mov eax, dword [edi + 0x14]
sub eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], edx
cmp edx, eax
ja 0x557ebc
mov eax, dword [ebp - 0x78]
add eax, edx
mov dword [ebp - 0x8c], edi
cmp dword [edi + 0x14], 8
mov edx, edi
mov dword [edi + 0x10], eax
jb 0x557e2d
mov edx, dword [edi]
mov dword [ebp - 0x8c], edx
mov esi, dword [ebp - 0x74]
lea eax, [esi + esi]
mov dword [ebp - 0x80], eax
add eax, ecx
cmp eax, edx
mov eax, dword [ebp - 0x78]
jbe 0x557e5d
add eax, eax
mov dword [ebp - 0x78], eax
add eax, edx
cmp ecx, eax
mov eax, dword [ebp - 0x78]
ja 0x557e5f
cmp edx, ecx
ja 0x557e55
xor esi, esi
jmp 0x557e5f
mov esi, edx
sub esi, ecx
sar esi, 1
jmp 0x557e5f
add eax, eax
add eax, 2
mov dword [ebp - 0x84], esi
push eax
mov eax, dword [ebp - 0x80]
push edx
add eax, edx
push eax
call fcn.00529d00
add esi, esi
push esi
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
call fcn.00529780
mov edx, dword [ebp - 0x74]
mov eax, edx
mov ecx, dword [ebp - 0x84]
sub eax, ecx
add eax, eax
push eax
lea eax, [ecx + edx]
mov ecx, dword [ebp - 0x88]
lea eax, [ecx + eax*2]
push eax
mov eax, dword [ebp - 0x8c]
add eax, esi
push eax
call fcn.00529780
mov esi, dword [ebp - 0x7c]
add esp, 0x24
jmp 0x557ed0
push edx
push ecx
push ecx
mov byte [ebp - 0x80], 0
mov ecx, edi
push dword [ebp - 0x80]
push edx
call fcn.004bdcd0
mov edi, eax
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], 0
movups xmm0, xmmword [edi]
mov dword [ebp - 0x90], 1
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x557f4a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x557f40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5581b1
push edx
push ecx
call fcn.00511c7f
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x44], 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push 0
push eax
push 0
mov dword [ebp - 0x2c], 7
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, 1
mov dword [ebp - 0x90], eax
and eax, 0xfffffffe
mov dword [ebp - 0x90], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x557fc9
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x557fbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5581b6
push edx
push ecx
call fcn.00511c7f
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
lea edi, [esi + 0x28]
mov word [ebp - 0x58], ax
push edi
lea edx, [esi + 0x10]
lea ecx, [ebp - 0x70]
call fcn.004bc2f0
add esp, 4
mov dword [ebp - 4], 8
lea eax, [ebp - 0x70]
push eax
lea ecx, [esi + 0x40]
call fcn.004bb270
cmp byte [esi + 0x68], 0
lea eax, [ebp - 0x70]
je 0x558023
cmp dword [ebp - 0x5c], 8
push 0
cmovae eax, dword [ebp - 0x70]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
jmp 0x558135
cmp dword [ebp - 0x5c], 8
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x558056
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x558056
mov esi, 0x80004004
jmp 0x558137
push 0x18
call fcn.00511c4f
mov edi, eax
add esp, 4
mov dword [ebp - 0x80], edi
mov byte [ebp - 4], 9
lea ecx, [edi + 8]
mov dword [edi + 4], 0
mov dword [edi], vtable.COutFileStream.0
mov dword [ebp - 0x7c], ecx
mov dword [ecx], 0xffffffff
mov byte [ebp - 4], 8
mov dword [esi + 0x6c], edi
mov eax, dword [edi]
push edi
mov dword [ebp - 0x74], edi
call dword [eax + 4]
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
cmovae eax, dword [ebp - 0x70]
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0x7c], eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x5580d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x5580fb
mov eax, dword [ebp - 0x7c]
mov dword [eax + 8], 0xffffffff
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 8], eax
cmp eax, 0xffffffff
jne 0x55810c
mov byte [ebp - 4], 8
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov esi, 0x80004004
jmp 0x558137
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x55811f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x94]
mov dword [esi + 0x70], edi
mov dword [ebp - 0x74], 0
mov dword [eax], edi
mov byte [ebp - 4], 8
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x558174
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x55816a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5581bb
push edx
push ecx
call fcn.00511c7f
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov eax, esi
mov dword [ebp - 0x5c], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005121be
mov esp, ebp
pop ebp
ret 0x10
call fcn.0052dad9
call fcn.0052dad9
call fcn.0052dad9
call fcn.0052dad9
call fcn.0052dad9
int3