Function at 0x461140
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9e3d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x537700]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x50], edi
jl 0x461108
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp + 0x14]
mov ecx, esi
push eax
push dword [ebp + 0x10]
call fcn.00461ab0
dec edi
cmp edi, 5
ja case.default.0x461061
jmp dword [edi*4 + 0x461128]
lea eax, [ebp - 0x28]
push eax
push str._FATAL_
jmp 0x4610a8
lea eax, [ebp - 0x28]
push eax
push str._ERROR_
jmp 0x4610a8
lea eax, [ebp - 0x28]
push eax
push str._WARN_
jmp 0x4610a8
lea eax, [ebp - 0x28]
push eax
push str._INFO_
jmp 0x4610a8
lea eax, [ebp - 0x28]
push eax
push str._DEBUG_
jmp 0x4610a8
lea eax, [ebp - 0x28]
push eax
push str._TRACE_
lea eax, [ebp - 0x40]
push eax
call fcn.00408500
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.00403970
lea ecx, [ebp - 0x40]
call fcn.00403560
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov ecx, esi
cmova eax, dword [ebp - 0x28]
push eax
call 0x461140
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x461108
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4610fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461123
push ecx
push edx
call fcn.004b812d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b847a
mov esp, ebp
pop ebp
ret
call fcn.004be0cf
push 0x73004610
adc byte [esi], al
jle 0x461142
inc esi
add byte [ecx - 0x6bffb9f0], cl
adc byte [esi], al
lahf
adc byte [esi], al
push ebp
lea ebp, [esp - 0x5c]
insb byte es:[edi], dx
and al, 0xa4
sub esp, 0x5c
push 0xffffffffffffffff
push 0x4e9eb7
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x537700]
xor eax, ebp
mov dword [ebp + 0x58], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x64]
lea eax, [edi + 4]
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp + 4], esi
mov dword [ebp + 8], 0
call fcn.004608a0
push 1
push 0x4f5610
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.00460120
cmp dword [edi + 0x30], 7
lea eax, [edi + 0x1c]
mov ecx, dword [eax + 0x10]
jbe 0x4611b2
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp + 0xc]
call fcn.00460120
lea ebx, [edi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
je 0x46144a
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
call fcn.00461540
cmp eax, 0x1388000
jle 0x4611f2
cmp dword [ebp + 0x20], 7
lea eax, [ebp + 0xc]
cmova eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x32
lea eax, [ebp + 0x24]
push 0
push eax
call fcn.004ba6a0
lea eax, [ebp + 0x24]
push eax
call fcn.00461820
add esp, 0x10
mov dword [ebp - 0xbc], 0x4f56e0
cmp dword [ebp + 0x20], 7
lea esi, [ebp + 0xc]
lea ecx, [ebp - 0x54]
cmova esi, dword [ebp + 0xc]
call fcn.00458b40
mov eax, dword [ebp - 0xbc]
push 0
mov byte [ebp - 4], 1
mov dword [ebp + 8], 1
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc0], eax
lea ecx, [ebp - 0xbc]
mov eax, dword [ebp - 0xbc]
add ecx, dword [eax + 4]
lea eax, [ebp - 0xb8]
push eax
call fcn.0045b950
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc0], eax
lea ecx, [ebp - 0xb8]
call fcn.004587f0
push 0x40
push 0xa
push esi
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 4
call fcn.00462c00
test eax, eax
jne 0x461304
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x84], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xb0]
and eax, 0x17
mov dword [ebp + ecx - 0xb0], eax
mov ecx, dword [ebp + ecx - 0xac]
and ecx, eax
jne 0x4614a3
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc0], eax
cmp dword [ebp - 0x6c], 0
mov byte [ebp - 4], 5
je 0x461388
push 0x4f56e8
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00455600
add esp, 8
push eax
call fcn.00455600
add esp, 8
mov ecx, eax
push 0x4f508c
push dword [ebp + 4]
push 0x4f56e8
push dword [edi + 0x34]
call fcn.00460c90
push eax
call fcn.00455600
add esp, 8
push eax
call fcn.00455600
add esp, 8
push eax
call fcn.00455600
add esp, 8
lea ecx, [ebp - 0xb8]
call fcn.0045b640
test eax, eax
jne 0x4613d3
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
xor eax, eax
cmp dword [ebp + ecx - 0x84], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ebp + ecx - 0xb0]
and eax, 0x17
mov dword [ebp + ecx - 0xb0], eax
mov ecx, dword [ebp + ecx - 0xac]
and ecx, eax
jne 0x4614eb
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc0], eax
lea ecx, [ebp - 0xb8]
call fcn.00458cf0
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc0], eax
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 6
push eax
mov dword [ebp - 0x54], vtable.std::ios_base.0
call fcn.004b7a9c
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 0x20]
cmp ecx, 7
jbe 0x461484
mov edx, dword [ebp + 0xc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46147a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461536
push ecx
push edx
call fcn.004b812d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x58]
xor ecx, ebp
call fcn.004b847a
lea esp, [ebp + 0x5c]
pop ebp
ret 4
test cl, 4
je 0x4614af
mov esi, str.ios_base::badbit_set
jmp 0x4614bf
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp]
push 1
push eax
call fcn.00456a00
add esp, 8
lea ecx, [ebp - 0xd8]
push eax
push esi
call fcn.00455b40
push 0x5174f8
lea eax, [ebp - 0xd8]
push eax
call fcn.004b9c4c
test cl, 4
je 0x4614f7
mov esi, str.ios_base::badbit_set
jmp 0x461507
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0xc4]
push 1
push eax
call fcn.00456a00
add esp, 8
lea ecx, [ebp - 0xec]
push eax
push esi
call fcn.00455b40
push 0x5174f8
lea eax, [ebp - 0xec]
push eax
call fcn.004b9c4c
call fcn.004be0cf
int3