Function at 0x470ea0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57171b
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x5e8ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xdc], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push 0
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xdc], esp
push 0x5e9b00
call fcn.0044c0c0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0044c0c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0046ffd0
add esp, 0x30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xb0
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.005446b0
add esp, 0xc
mov dword [ebp - 0xd8], 0x5d5c38
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
mov byte [ebp - 4], 3
lea eax, [ebp - 0xd4]
push 0
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0xdc], 1
mov dword [ebp - 0x70], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x74], 0x60
call fcn.0044aea0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xdc], eax
lea ecx, [ebp - 0xd4]
call fcn.0044ade0
push 0
push 0
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xd4], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.00450ed0
push ecx
push 2
push esi
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 6
call fcn.00451a20
test eax, eax
jne 0x471025
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xd8]
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.00448c60
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xdc], eax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x88], 0
jne 0x47105d
xor esi, esi
jmp 0x4710a1
call fcn.00453eb0
mov esi, dword [eax + 0x10]
call fcn.00453eb0
cmp dword [eax + 0x14], 0x10
jb 0x471072
mov eax, dword [eax]
push 0
push esi
push eax
lea ecx, [ebp - 0xd8]
call fcn.004534a0
lea ecx, [ebp - 0xd8]
call fcn.00453300
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.004678c0
mov esi, 1
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xdc], eax
lea ecx, [ebp - 0xd4]
call fcn.004508d0
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xdc], eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
mov dword [ebp - 0x70], vtable.std::ios_base.0
call fcn.00529d9d
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x471147
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47113d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4711ad
push edx
push ecx
call fcn.0052cac7
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x471191
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x471187
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4711b2
push edx
push ecx
call fcn.0052cac7
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c886
mov esp, ebp
pop ebp
ret
call fcn.00548571
call fcn.00548571
int3