Function at 0x473010
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573c7b
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x5eaea4]
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 0x5ebb18
call fcn.0044c0e0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0044c0e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00472140
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.005469e0
add esp, 0xc
mov dword [ebp - 0xd8], 0x5d7e4c
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.0044aec0
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.0044ae00
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.00452e40
push ecx
push 2
push esi
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 6
call fcn.00453990
test eax, eax
jne 0x473195
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.00448c80
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 0x4731cd
xor esi, esi
jmp 0x473211
call fcn.00455e80
mov esi, dword [eax + 0x10]
call fcn.00455e80
cmp dword [eax + 0x14], 0x10
jb 0x4731e2
mov eax, dword [eax]
push 0
push esi
push eax
lea ecx, [ebp - 0xd8]
call fcn.00455470
lea ecx, [ebp - 0xd8]
call fcn.004552d0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00469a40
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.00452840
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.0052c0cd
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x4732b7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4732ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47331d
push edx
push ecx
call fcn.0052edf8
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 0x473301
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4732f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473322
push edx
push ecx
call fcn.0052edf8
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.0052ebb7
mov esp, ebp
pop ebp
ret
call fcn.0054a8a1
call fcn.0054a8a1
int3