Function at 0x40ae20
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x50]
sub esp, 0x50
push 0xffffffffffffffff
push 0x46f3e8
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4901fc]
xor eax, ebp
mov dword [ebp + 0x4c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x58]
lea eax, [ebp + 8]
push eax
mov dword [ebp + 4], 0
call fcn.0040aca0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov al, byte [eax + 0x1c]
test al, al
jne 0x40aec6
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test ebx, ebx
je 0x40b144
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x40b144
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x40b144
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 4]
jmp 0x40b144
cmp dword [esi + 0x14], 8
jb 0x40aed0
mov eax, dword [esi]
jmp 0x40aed2
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b108
test al, 0x10
jne 0x40b108
lea eax, [ebp + 0x34]
mov ecx, esi
push eax
call fcn.0040b170
cmp dword [esi + 0x14], 8
jb 0x40aefd
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
xor esi, esi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp - 0xbc], 0x473d3c
mov dword [ebp - 0xac], 0x473d44
push ebx
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 3
xorps xmm0, xmm0
mov dword [ebp + 4], 2
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x58], 0x50
movlpd qword [ebp - 0xb4], xmm0
call fcn.0040d520
lea eax, [ebp - 0xac]
mov dword [ebp], eax
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xac], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xb0], eax
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xc0], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 4], 8
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc0], eax
lea eax, [ebp - 0xa4]
mov ecx, eax
mov dword [ebp], eax
call fcn.00409c00
cmp dword [ebp + 0x48], 0x10
lea eax, [ebp + 0x34]
push ebx
push dword [ebp + 0x44]
cmovae eax, dword [ebp + 0x34]
lea ecx, [ebp - 0xa4]
push eax
mov byte [ebp - 4], 9
mov dword [ebp - 0xa4], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.0040bd50
mov dword [ebp + 0x30], 0xf
mov dword [ebp + 0x2c], ebx
mov byte [ebp + 0x1c], bl
push 0xa
lea eax, [ebp + 0x1c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00409610
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x40b083
nop dword [eax]
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x10]
call fcn.0040d920
push 0xa
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00409610
add esp, 0xc
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x40b050
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x30]
mov dword [edi], esi
mov dword [edi + 4], ebx
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
cmp eax, 0x10
jb 0x40b0b8
inc eax
lea ecx, [ebp + 0x1c]
push eax
push dword [ebp + 0x1c]
call fcn.00404470
lea ecx, [ebp - 0x54]
call fcn.00409e60
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0xc
push eax
mov dword [ebp - 0x54], vtable.std::ios_base.0
call fcn.00438786
add esp, 4
lea ecx, [ebp + 0x10]
call fcn.00401aa0
mov eax, dword [ebp + 0x48]
cmp eax, 0x10
jb 0x40b0f4
inc eax
lea ecx, [ebp + 0x34]
push eax
push dword [ebp + 0x34]
call fcn.00404470
mov dword [ebp + 0x48], 0xf
mov dword [ebp + 0x44], 0
mov byte [ebp + 0x34], 0
jmp 0x40b11c
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40b144
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x40b144
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x40b144
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4c]
xor ecx, ebp
call fcn.00439740
lea esp, [ebp + 0x50]
pop ebp
ret 4