Function at 0x4caa20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c6ba
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
push ebx
push esi
push edi
mov eax, dword [0x5df7e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], 0
call fcn.004bb5b0
mov ecx, eax
test ecx, ecx
je 0x4cad04
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
call fcn.004ca5c0
add esp, 4
test al, al
je 0x4caccc
push str.local.log
lea ecx, [ebp - 0x14]
call fcn.004c8fb0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x70]
mov dword [ebp - 0xe0], 0x56d100
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x70], vtable.std::ios_base.0
mov byte [ebp - 4], 2
mov dword [ebp - 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov byte [ebp - 4], 3
xorps xmm0, xmm0
mov eax, dword [ebp - 0xe0]
push 0
mov dword [ebp - 0x18], 1
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0xe4], eax
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
movlpd qword [ebp - 0xd8], xmm0
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004d1a90
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0xe0]
push 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xe4], eax
lea ecx, [ebp - 0xd0]
call fcn.004c5c70
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xd0]
push 0x40
push 1
push esi
call fcn.004d1de0
test eax, eax
jne 0x4caba6
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0xa8], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xd4]
and eax, 0x17
mov dword [ebp + ecx - 0xd4], eax
mov ecx, dword [ebp + ecx - 0xd0]
and ecx, eax
jne 0x4cad0e
mov byte [ebp - 4], 8
cmp dword [ebp - 0x84], 0
jne 0x4cabc9
xor bl, bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
call fcn.004c8070
jmp 0x4cacce
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x10], 0
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xd4], 1
jne 0x4cabfb
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xe0]
call fcn.004c3ba0
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi]
je 0x4cabfb
mov dword [edi], eax
mov eax, dword [ebp - 0xe0]
xor esi, esi
mov dword [ebp - 0x10], 0
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xd4], 1
jne 0x4cac5e
mov ebx, dword [ebp - 0x1c]
nop word [eax + eax]
cmp esi, 0x3e8
jge 0x4cac5e
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xe0]
call fcn.004c3ba0
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 0x10]
call fcn.004c46f0
mov eax, dword [ebp - 0xe0]
inc esi
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xd4], 1
je 0x4cac20
lea ecx, [ebp - 0xd0]
call fcn.004cf8a0
test eax, eax
jne 0x4caca9
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0xa8], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xd4]
and eax, 0x17
mov dword [ebp + ecx - 0xd4], eax
mov ecx, dword [ebp + ecx - 0xd0]
and ecx, eax
jne 0x4cad56
cmp esi, 0x3e8
jl 0x4cacba
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xe0]
call fcn.004c8070
jmp 0x4cacce
xor bl, bl
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4cacf0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004b95c0
test cl, 4
je 0x4cad1a
mov esi, str.ios_base::badbit_set
jmp 0x4cad2a
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.004d1c20
add esp, 8
lea ecx, [ebp - 0xf4]
push eax
push esi
call fcn.004c6590
push 0x5c7918
lea eax, [ebp - 0xf4]
push eax
call fcn.00529368
test cl, 4
je 0x4cad62
mov esi, str.ios_base::badbit_set
jmp 0x4cad72
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.004d1c20
add esp, 8
lea ecx, [ebp - 0x108]
push eax
push esi
call fcn.004c6590
push 0x5c7918
lea eax, [ebp - 0x108]
push eax
call fcn.00529368
int3