Function at 0x473770
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57453b
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x5ebea4]
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 0x5ecb18
call fcn.0044c140
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0044c140
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004728a0
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.005471b0
add esp, 0xc
mov dword [ebp - 0xd8], 0x5d8e5c
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.0044af20
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.0044ae60
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.00452ea0
push ecx
push 2
push esi
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 6
call fcn.004539f0
test eax, eax
jne 0x4738f5
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.00448ce0
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 0x47392d
xor esi, esi
jmp 0x473971
call fcn.00455ee0
mov esi, dword [eax + 0x10]
call fcn.00455ee0
cmp dword [eax + 0x14], 0x10
jb 0x473942
mov eax, dword [eax]
push 0
push esi
push eax
lea ecx, [ebp - 0xd8]
call fcn.004554d0
lea ecx, [ebp - 0xd8]
call fcn.00455330
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.0046a1a0
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.004528a0
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.0052c8ad
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x473a17
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x473a0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473a7d
push edx
push ecx
call fcn.0052f5d6
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 0x473a61
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x473a57
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473a82
push edx
push ecx
call fcn.0052f5d6
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.0052f395
mov esp, ebp
pop ebp
ret
call fcn.0054b071
call fcn.0054b071
int3